Package conary :: Package repository :: Module changeset :: Class ReadOnlyChangeSet
[hide private]
[frames] | no frames]

Class ReadOnlyChangeSet

source code

             object --+        
                      |        
lib.cstreams'.StreamSet --+    
                          |    
                  ChangeSet --+
                              |
                             ReadOnlyChangeSet
Known Subclasses:
ChangeSetFromFile, conaryclient.update.UpdateChangeSet

Instance Methods [hide private]
 
addFileContents(self, *args, **kw) source code
 
_nextFile(self) source code
 
getFileContents(self, pathId, fileId, compressed=False) source code
 
makeAbsolute(self, repos)
Converts this (relative) change set to an abstract change set.
source code
 
rootChangeSet(self, db, troveMap)
Converts this (absolute) change set to a relative change set.
source code
 
writeAllContents(self, csf, withReferences=False) source code
 
_mergeConfigs(self, otherCs) source code
 
_mergeReadOnly(self, otherCs) source code
 
_mergeCs(self, otherCs) source code
 
merge(self, otherCs) source code
 
reset(self) source code
 
_sendInfo(self) source code
 
__init__(self, data=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from ChangeSet: addFile, addPrimaryTrove, clearTroves, configFileIsDiff, delNewTrove, delOldTrove, formatToFile, getFileChange, getJobSet, getNewTroveVersion, getOldTroveList, getPrimaryPackageList, getPrimaryTroveList, hasNewTrove, hasOldTrove, isAbsolute, isEmpty, isLocal, iterNewPackageList, iterNewTroveList, makeRollback, newPackage, newTrove, oldTrove, send, setPrimaryTroveList, setTargetShadow, writeContents, writeToFile

Inherited from ChangeSet (private): _findFileChange, _resetTroveLists

Inherited from lib.cstreams'.StreamSet: __cmp__, __deepcopy__, __eq__, __hash__, __new__, diff, find, freeze, thaw, twm

Inherited from object: __delattr__, __getattribute__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
fileQueueCmp(a, b) source code
 
_fromInfo(fileObjList, s) source code
Class Variables [hide private]
  _tag = 'ccs-ro'

Inherited from ChangeSet: ignoreUnknown, streamDict

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

addFileContents(self, *args, **kw)

source code 
Overrides: ChangeSet.addFileContents

getFileContents(self, pathId, fileId, compressed=False)

source code 
Overrides: ChangeSet.getFileContents

makeAbsolute(self, repos)

source code 
Converts this (relative) change set to an abstract change set. File streams and contents are omitted unless the file changed. This is fine for changesets being committed, not so hot for changesets which are being applied directly to a system. The absolute changeset is returned as a new changeset; self is left unchanged.

rootChangeSet(self, db, troveMap)

source code 

Converts this (absolute) change set to a relative change set. The second parameter, troveMap, specifies the old trove for each trove listed in this change set. It is a dictionary mapping (troveName, newVersion, newFlavor) tuples to (oldVersion, oldFlavor) pairs. The troveMap may be (None, None) if a new install is desired (the trove is switched from absolute to relative to nothing in this case). If an entry is missing for a trove, that trove is left absolute.

Rooting can happen multiple times (only once per trove though). To allow this, the absolute file streams remain available from this changeset for all time; rooting does not remove them.

writeAllContents(self, csf, withReferences=False)

source code 
Overrides: ChangeSet.writeAllContents

_sendInfo(self)

source code 
Overrides: ChangeSet._sendInfo

_fromInfo(fileObjList, s)
Static Method

source code 
Overrides: ChangeSet._fromInfo

__init__(self, data=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: ChangeSet.__init__