Part of lp.code.interfaces.revisioncache View In Hierarchy
Known subclasses: lp.code.interfaces.revisioncache.IRevisionCache
An IRevisionCollection
is an immutable collection of revisions. It has
three kinds of methods: filter methods, query methods, and count methods.
Query methods get information about the contents of collection. At this
time we only have getRevisions
to return Revision
objects from the
cache.
Filter methods return new IRevisionCollection instances that have some
sort of restriction. Examples include inProduct
, and public
.
Count methods just return a number.
Implementations of this interface are not 'content classes'. That is, they do not correspond to a particular row in the database.
This interface is intended for use within Launchpad, not to be exported as a public API.
Method | count | The number of revisions in this collection. |
Method | authorCount | The number of different people authoring revisions. |
Method | getRevisions | Return a result set of all the revisions in this collection. |
Method | inProduct | Restrict to revisions in branches in 'product'. |
Method | inProjectGroup | Restrict to revisions in branches in 'projectgroup'. |
Method | inSourcePackage | Restrict to revisions in branches in 'package'. |
Method | inDistribution | Restrict to revisions in branches in 'distribution'. |
Method | inDistroSeries | Restrict to revisions in branches in 'distro_series'. |
Method | inDistributionSourcePackage | Restrict to revisions in branches in a 'package' for a |
Method | public | Restrict to revisions that are publicly visible. |
Method | authoredBy | Restrict to revisions authored by 'person'. |
Only revisions in the restricted collection are counted.
The revisions are ordered with the newer revision_dates before the older ones.
A source package is effectively a sourcepackagename in a distro series.