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, changes=None, project='', repository='') 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
 
getAbsoluteSourceStamp(self, got_revision) source code
 
getText(self) source code
 
asDict(self) source code
 
upgradeToVersion1(self) source code
 
upgradeToVersion2(self) source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from util.ComparableMixin: __cmp__, __hash__, __providedBy__

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

Class Variables
  persistenceVersion = 2
  persistenceForgets = ('wasUpgraded')
  branch = None
hash(x)
  revision = None
hash(x)
  patch = None
hash(x)
  changes = ()
  project = ''
  repository = ''
  ssid = None
hash(x)
  compare_attrs = ('branch', 'revision', 'patch', 'changes', 'pr...
  __implemented__ = <implementedBy buildbot.sourcestamp.SourceSt...
Method Details

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.

__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.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]
  ['IFooFactory']

  >>> [i.getName() for i in C().__provides__]
  ['IFoo']

Overrides: twisted.persisted.styles.Versioned.__provides__

Class Variable Details

compare_attrs

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

__implemented__

Value:
<implementedBy buildbot.sourcestamp.SourceStamp>