| Trees | Indices | Help |
|
|---|
object --+ | api.Repository --+ | CachedRepository
'')'')Inherited from api.Repository :
can_view ,
clear ,
display_rev ,
get_youngest_rev_in_cache ,
short_rev
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
False
Inherited from api.Repository :
oldest_rev ,
youngest_rev
Inherited from object:
__class__
name - a unique name identifying the repository, usually a
type-specific prefix followed by the path to the
repository.params - a dict of parameters for the repository. Contains
the name of the repository under the key "name" and
the surrogate key that identifies the repository in
the database under the key "id".log - a logger instance.Return the name of the base repository for this repository.
This function returns the name of the base repository to which scoped repositories belong. For non-scoped repositories, it returns the repository name.
Generates changes corresponding to generalized diffs.
Generator that yields change tuples (old_node, new_node, kind, change) for each node change between the two arbitrary (path,rev) pairs.
The old_node is assumed to be None when the change is an ADD, the new_node is assumed to be None when the change is a DELETE.
rev.
Return a globally unique identifier for the ''rev'' changeset.
Two changesets from different repositories can sometimes refer to the ''very same'' changeset (e.g. the repositories are clones).
Retrieve a Node from the repository at the given path.
A Node represents a directory or a file at a given revision in the
repository.
If the rev parameter is specified, the Node corresponding to that
revision is returned, otherwise the Node corresponding to the youngest
revision is returned.
Retrieve all the revisions containing this path.
If given, rev is used as a starting point (i.e. no revision
''newer'' than rev should be returned).
The result format should be the same as the one of Node.get_history()
Return the repository URL for the given path and revision.
The returned URL can be None, meaning that no URL has been specified
for the repository, an absolute URL, or a scheme-relative URL starting
with //, in which case the scheme of the request should be prepended.
Generate a list of interesting places in the repository.
rev might be used to restrict the list of available locations,
but in general it's best to produce all known locations.
The generated results must be of the form (category, name, path, rev).
Tell if there's a node at the specified (path,rev) combination.
When rev is None, the latest revision is implied.
@cached('_metadata_id')'')
Return a (unique) canonical representation of a revision.
It's up to the backend to decide which string values of rev
(usually provided by the user) should be accepted, and how they
should be normalized. Some backends may for instance want to match
against known tags or branch names.
In addition, if rev is None or '', the youngest revision should
be returned.
'')
Provides a total order over revisions.
Return True if rev1 is older than rev2, i.e. if rev1
comes before rev2 in the revision sequence.
Perform a sync of the repository cache, if relevant.
If given, rev_callback must be a callable taking a rev parameter.
The backend will call this function for each rev it decided to
synchronize, once the synchronization changes are committed to the
cache. When clean is True, the cache is cleaned first.
Resync the repository cache for the given rev, if relevant.
Returns a "metadata-only" changeset containing the metadata prior to
the resync, or None if the old values cannot be retrieved (typically
when the repository is not cached).
| Trees | Indices | Help |
|
|---|