| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
NamespaceObject --+
|
ArchiveItem --+
|
CategoryItem --+
|
BranchItem --+
|
VersionItem --+
|
Revision
Arch revision namespace object. :see: `Archive`, `Category`, `Branch`, `Version` :group Libray Methods: library_add, library_remove, library_find :group History Methods: get_ancestor, get_previous, iter_ancestors
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
| Properties | |
|
ancestor Parent revision. |
|
|
patchlog Patchlog associated to this revision. |
|
|
previous Previous namespace revision. |
|
|
Inherited from Inherited from Inherited from Inherited from |
|
| Method Details |
Create a Revision object from its name.
:param name: fully-qualified revision, like
"jdoe@example.com--2004/frob--devo--1.2--patch-2".
:type name: str
:note: Nameless branches have no "branch" part in their name.
|
Replay this revision on this tree. Raise on conflict.
:param tree: the tree to apply changes to.
:type tree: `WorkingTree`
:param reverse: invert the meaning of the changeset; adds
become deletes, etc.
:type reverse: bool
:raise errors.ChangesetConflict: a conflict occured while replaying the
revision.
|
Deprecated Returns this revision. For consistency with `Package.as_revision()`. :rtype: `Revision` |
Cache a full source tree for this revision in its archive. :param cache: cache root for trees with pristines. :type cache: bool |
Does this namespace exists?
Within the Arch model, history cannot be changed: created archive
entries cannot be deleted. However, it is possible to ``unregister`` an
archive, or to find references to archives whose location is not known.
Thus, existence cannot always be decided. Testing for the existence of
a name in a non-registered archive raises
`errors.ArchiveNotRegistered`.
:return: whether this namespace object exists.
:rtype: bool
:raise errors.ArchiveNotRegistered: the archive name is not registered,
so existence cannot be decided.
:raise errors.ExecProblem: there was a problem accessing the archive.
|
Construct a project tree for this revision.
Extract this revision from the archive.
:param dir: path of the project tree to create. Must not
already exist.
:type dir: str
:param link: hardlink files to revision library instead of copying
:type link: bool
:return: newly created project tree.
:rtype: `WorkingTree`
|
Deprecated.
Parent revision.
:return:
- The previous namespace revision, if this revision is regular
commit.
- The tag origin, if this revision is a continuation
- ``None`` if this revision is an import.
:rtype: `Revision` or None
:see: `Revision.ancestor`
|
Fetch the changeset associated to this revision.
:param dir: name of the changeset directory to create. Must
not already exist.
:type dir: str
:return: changeset associated to this revision.
:rtype: `Changeset`
|
Deprecated. Patchlog associated to this revision. :rtype: `Patchlog` :see: `Revision.patchlog` |
Deprecated.
Previous namespace revision.
:return: the previous revision in the same version, or None if this
revision is a ``base-0``.
:rtype: `Revision` or None
:see: `Revision.previous`
|
Ancestor revisions. :param metoo: yield ``self`` as the first revision. :type metoo: bool :return: all the revisions in that line of development. :rtype: iterable of `Revision` |
Files stored in the archive for that revision. :rtype: iterable of `RevisionFile` |
Add this revision to the library. :postcondition: self in self.version.iter_library_revisions() |
The copy of this revision in the library. :rtype: `LibraryTree` :precondition: self in self.version.iter_library_revisions() |
Remove this revision from the library. :precondition: self in self.version.iter_library_revisions() :postcondition: self not in self.version.iter_library_revisions() |
Create a continuation of this revision in the target version.
:param target: version to create a continuation into. If it does not
exist yet, it is created.
:type target: Version
|
| Property Details |
ancestorParent revision. - The previous namespace revision, if this revision is regular commit. - The tag origin, if this revision is a continuation - ``None`` if this revision is an import. :type: `Revision` or None
|
patchlogPatchlog associated to this revision. The `Patchlog` object is created in `__init__`, since log parsing is deferred that has little overhead and avoid parsing the log for a given revision several times. The patchlog data is read from the archive. :type: `Patchlog` :see: `ArchSourceTree.iter_logs`
|
previousPrevious namespace revision. The previous revision in the same version, or None if this revision is a ``base-0``. :type: `Revision` or None
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Wed Sep 5 09:53:13 2007 | http://epydoc.sourceforge.net |