l.c.m.r.RevisionSet : class documentation

Part of lp.code.model.revision View In Hierarchy

No class docstring
Method getByRevisionId Undocumented
Method new See IRevisionSet.new()
Method acquireRevisionAuthors Find or create the RevisionAuthors with the specified names.
Method newFromBazaarRevisions See IRevisionSet.
Static Method onlyPresent See IRevisionSet.
Method getTipRevisionsForBranches See IRevisionSet.
Static Method getRecentRevisionsForProduct See IRevisionSet.
Static Method getRevisionsNeedingKarmaAllocated See IRevisionSet.
Static Method getPublicRevisionsForPerson See IRevisionSet.
Class Method getPublicRevisionsForProduct See IRevisionSet.
Class Method getPublicRevisionsForProjectGroup See IRevisionSet.
Static Method updateRevisionCacheForBranch See IRevisionSet.
Static Method pruneRevisionCache See IRevisionSet.
Method _createRevisionAuthor Extract out the email and check to see if it matches a Person.
Method _timestampToDatetime Convert the given timestamp to a datetime object.
Static Method _getPublicRevisionsHelper Helper method for Products and ProjectGroups.
def getByRevisionId(self, revision_id):
Undocumented
def _createRevisionAuthor(self, revision_author):
Extract out the email and check to see if it matches a Person.
def new(self, revision_id, log_body, revision_date, revision_author, parent_ids, properties, _date_created=None):
See IRevisionSet.new()
def acquireRevisionAuthors(self, author_names):
Find or create the RevisionAuthors with the specified names.

A name may be any arbitrary string, but if it is an email-id, and
its email address is a verified email address, it will be
automatically linked to the corresponding Person.

Email-ids come in two major forms:
    "Foo Bar" <foo@bar.com>
    foo@bar.com (Foo Bar)
:return: a dict of name -> RevisionAuthor
def _timestampToDatetime(self, timestamp):
Convert the given timestamp to a datetime object.

This works around a bug in Python that causes datetime.fromtimestamp to raise an exception if it is given a negative, fractional timestamp.

ParameterstimestampA timestamp from a bzrlib.revision.Revision (type: float)
ReturnsA datetime corresponding to the given timestamp.
def newFromBazaarRevisions(self, revisions):
See IRevisionSet.
@staticmethod
def onlyPresent(revids):
See IRevisionSet.
def getTipRevisionsForBranches(self, branches):
See IRevisionSet.
@staticmethod
def getRecentRevisionsForProduct(product, days):
See IRevisionSet.
@staticmethod
def getRevisionsNeedingKarmaAllocated(limit=None):
See IRevisionSet.
@staticmethod
def getPublicRevisionsForPerson(person, day_limit=30):
See IRevisionSet.
@staticmethod
def _getPublicRevisionsHelper(obj, day_limit):
Helper method for Products and ProjectGroups.
@classmethod
def getPublicRevisionsForProduct(cls, product, day_limit=30):
See IRevisionSet.
@classmethod
def getPublicRevisionsForProjectGroup(cls, project, day_limit=30):
See IRevisionSet.
@staticmethod
def updateRevisionCacheForBranch(branch):
See IRevisionSet.
@staticmethod
def pruneRevisionCache(limit):
See IRevisionSet.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.