Package pybaz :: Module _changeset
[frames] | no frames]

Module _changeset

source code

Internal module providing changeset handling.

This module implements some of public interface for the
pybaz_ package. But for convenience reasons the author prefers
to store this code in a file separate from ``__init__.py``.

.. _pybaz: pybaz-module.html

This module is strictly internal and should never be used.



Classes
  Changeset
Arch whole-tree changeset.
  ChangesetApplication
Incremental changeset application process.
  ChangesetCreation
Incremental changeset generation process.
Functions
 
iter_delta(orig, mod, dest)
Compute a whole-tree changeset with incremental output.
 
delta(orig, mod, dest)
Compute a whole-tree changeset.
Function Details

iter_delta(orig, mod, dest)

 
Compute a whole-tree changeset with incremental output.

:param orig: old revision or directory.
:type orig: `Revision`, `ArchSourceTree`
:param mod: new revision or directory,
:type mod: `Revision`, `ArchSourceTree`
:param dest: path of the changeset to create.
:type dest: str
:rtype: `ChangesetCreation`

delta(orig, mod, dest)

 
Compute a whole-tree changeset.

Create the output directory ``dest`` (it must not already exist).

Compare the source trees ``orig`` and ``mod`` (which may be source
arch source tree or revisions). Create a changeset in ``dest``.

:param orig: the old revision or directory.
:type orig: `Revision`, `ArchSourceTree`
:param mod: the new revision or directory.
:type mod: `Revision`, `ArchSourceTree`
:param dest: path of the changeset to create.
:type dest: str
:return: changeset from ``orig`` to ``mod``.
:rtype: `Changeset`