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

Class ChangeSet

source code

             object --+    
                      |    
lib.cstreams'.StreamSet --+
                          |
                         ChangeSet
Known Subclasses:
ChangeSetFromAbsoluteChangeSet, ReadOnlyChangeSet

Instance Methods [hide private]
 
_resetTroveLists(self) source code
 
isEmpty(self) source code
 
isAbsolute(self) source code
 
isLocal(self) source code
 
addPrimaryTrove(self, name, version, flavor) source code
 
setPrimaryTroveList(self, l) source code
 
getPrimaryTroveList(self)
PUBLIC API
source code
 
getPrimaryPackageList(self) source code
 
newTrove(self, csTrove) source code
 
newPackage(self, csTrove) source code
 
delNewTrove(self, name, version, flavor) source code
 
oldTrove(self, name, version, flavor) source code
 
hasOldTrove(self, name, version, flavor) source code
 
delOldTrove(self, name, version, flavor) source code
 
iterNewTroveList(self)
PUBLIC API
source code
 
iterNewPackageList(self) source code
 
getNewTroveVersion(self, name, version, flavor)
PUBLIC API
source code
 
hasNewTrove(self, name, version, flavor) source code
 
getOldTroveList(self) source code
 
configFileIsDiff(self, pathId, fileId) source code
 
addFileContents(self, pathId, fileId, contType, contents, cfgFile, compressed=False) source code
 
getFileContents(self, pathId, fileId, compressed=False) source code
 
addFile(self, oldFileId, newFileId, csInfo) source code
 
formatToFile(self, cfg, f) source code
 
getFileChange(self, oldFileId, newFileId) source code
 
_findFileChange(self, fileId) source code
 
writeContents(self, csf, contents, early, withReferences) source code
 
writeAllContents(self, csf, withReferences) source code
 
writeToFile(self, outFileName, withReferences=False, mode=438, versionOverride=None) source code
 
makeRollback(self, db, configFiles=False, redirectionRollbacks=True) source code
 
setTargetShadow(self, repos, targetShadowLabel)
Retargets this changeset to create troves and files on shadow targetLabel off of the parent of the source node.
source code
 
getJobSet(self, primaries=False)
Regenerates the primary change set job (passed to change set creation) for this change set.
source code
 
clearTroves(self)
Reset the newTroves and oldTroves list for this changeset.
source code
 
_sendInfo(self) source code
 
send(self, sock)
Sends this changeset over a unix-domain socket.
source code
 
__init__(self, data=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

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]
 
_fromInfo(fileObjList, s) source code
Class Variables [hide private]
  streamDict = {1: (1, <class 'conary.streams.ReferencedTroveLis...
  ignoreUnknown = True
  _tag = 'ccs-rw'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getPrimaryTroveList(self)

source code 
PUBLIC API
Decorators:
  • @api.publicApi

iterNewTroveList(self)

source code 
PUBLIC API
Returns:
dictionary-valueiterator object
Decorators:
  • @api.publicApi

getNewTroveVersion(self, name, version, flavor)

source code 
PUBLIC API
Decorators:
  • @api.publicApi

setTargetShadow(self, repos, targetShadowLabel)

source code 
Retargets this changeset to create troves and files on shadow targetLabel off of the parent of the source node. Version calculations aren't quite right for source troves (s/incrementBuildCount).
Parameters:
  • repos (repository.Repository) - repository which will be committed to
  • targetShadowLabel (versions.Label) - label of the branch to commit to

clearTroves(self)

source code 
Reset the newTroves and oldTroves list for this changeset. File information is preserved.

send(self, sock)

source code 
Sends this changeset over a unix-domain socket. This object remains a valid changeset (it is not affected by the send operation).
Parameters:
  • sock (int) - File descriptor for unix domain socket

__init__(self, data=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: lib.cstreams'.StreamSet.__init__
(inherited documentation)

Class Variable Details [hide private]

streamDict

Value:
{1: (1,
     <class 'conary.streams.ReferencedTroveList'>,
     'primaryTroveList'),
 2: (1,
     <class 'conary.repository.changeset.ChangeSetNewTroveList'>,
     'newTroves'),
 3: (1, <class 'conary.streams.ReferencedTroveList'>, 'oldTroves'),
 4: (1, <class 'conary.repository.changeset.ChangeSetFileDict'>, 'file\
...