Package buildbot :: Module sourcestamp :: Class SourceStamp
[frames] | no frames]

Class SourceStamp

source code

              util.ComparableMixin --+
                                     |
twisted.persisted.styles.Versioned --+
                                     |
                                    SourceStamp

This is a tuple of (branch, revision, patchspec, changes, project, repository).

branch is always valid, although it may be None to let the Source step use its default branch. There are three possibilities for the remaining elements:

Instance Methods
 
__init__(self, branch=None, revision=None, patch=None, sourcestampsetid=None, patch_info=None, changes=None, project='', repository='', codebase='', _fromSsdict=False, _ignoreChanges=False) source code
 
canBeMergedWith(self, other) source code
 
mergeWith(self, others)
Generate a SourceStamp for the merger of me and all the other SourceStamps.
source code
 
clone(self) source code
 
getAbsoluteSourceStamp(self, got_revision) source code
 
getText(self) source code
 
asDict(self) source code
 
__setstate__(self, d) source code
 
upgradeToVersion1(self) source code
 
upgradeToVersion2(self) source code
 
upgradeToVersion3(self) source code
 
getSourceStampSetId(self, master)
temporary; do not use widely!
source code
 
addSourceStampToDatabase(*args, **kwargs) source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from util.ComparableMixin: __cmp__, __hash__

Inherited from twisted.persisted.styles.Versioned: __getstate__, __providedBy__, versionUpgrade

Class Methods
 
fromSsdict(cls, master, ssdict)
Class method to create a SourceStamp from a dictionary as returned by SourceStampConnectorComponent.getSourceStamp.
source code
Class Variables
  persistenceVersion = 3
  persistenceForgets = ('wasUpgraded')
  codebase = ''
  sourcestampsetid = None
hash(x)
  compare_attrs = ('branch', 'revision', 'patch', 'patch_info', ...
  __implemented__ = <implementedBy buildbot.sourcestamp.SourceSt...
Instance Variables
  branch = None
branch name or None
  revision = None
revision string or None
  patch = None
tuple (patch level, patch body) or None
  patch_info = None
tuple (patch author, patch comment) or None
  changes = ()
tuple of changes that went into this source stamp, sorted by number
  project = ''
project name
  repository = ''
repository URL
  ssid = None
sourcestamp ID, or None if this sourcestamp has not yet been added to the database
Method Details

fromSsdict(cls, master, ssdict)
Class Method

source code 

Class method to create a SourceStamp from a dictionary as returned by SourceStampConnectorComponent.getSourceStamp.

Parameters:
  • master - build master instance
  • ssdict - source stamp dictionary
Returns:
SourceStamp via Deferred

mergeWith(self, others)

source code 

Generate a SourceStamp for the merger of me and all the other SourceStamps. This is called by a Build when it starts, to figure out what its sourceStamp should be.

__setstate__(self, d)

source code 
Overrides: twisted.persisted.styles.Versioned.__setstate__

addSourceStampToDatabase(*args, **kwargs)

source code 
Decorators:
  • @util.deferredLocked('_addSourceStampToDatabase_lock')

__provides__(...)

 

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

Overrides: twisted.persisted.styles.Versioned.__provides__

Class Variable Details

compare_attrs

Value:
('branch',
 'revision',
 'patch',
 'patch_info',
 'changes',
 'project',
 'repository',
 'codebase')

__implemented__

Value:
<implementedBy buildbot.sourcestamp.SourceStamp>