Module b.status

Part of bzrlib

No module docstring
Line # Kind Name Docs
38 Function show_tree_status Display summary of changes.
176 Function show_pending_merges Write out a display of pending merges in a working tree.
150 Function _get_sorted_revisions Get an iterator which will return the revisions in merge sorted order.
def show_tree_status(wt, show_unchanged=None, specific_files=None, show_ids=False, to_file=None, show_pending=True, revision=None, short=False, versioned=False):
Display summary of changes.

By default this compares the working tree to a previous revision. If the revision argument is given, summarizes changes between the working tree and another, or between two revisions.

The result is written out as Unicode and to_file should be able to encode that.

If showing the status of a working tree, extra information is included about unknown files, conflicts, and pending merges.

Parametersshow_unchangedDeprecated parameter. If set, includes unchanged files.
specific_filesIf set, a list of filenames whose status should be shown. It is an error to give a filename that is not in the working tree, or in the working inventory or in the basis inventory.
show_idsIf set, includes each file's id.
to_fileIf set, write to this file (default stdout.)
show_pendingIf set, write pending merges.
revisionIf None, compare latest revision with working tree If not None, it must be a RevisionSpec list. If one revision, compare with working tree. If two revisions, show status between first and second.
shortIf True, gives short SVN-style status lines.
versionedIf True, only shows versioned files.
def _get_sorted_revisions(tip_revision, revision_ids, parent_map):
Get an iterator which will return the revisions in merge sorted order.

This will build up a list of all nodes, such that only nodes in the list are referenced. It then uses MergeSorter to return them in 'merge-sorted' order.

Parametersrevision_idsA set of revision_ids
parent_mapThe parent information for each node. Revisions which are considered ghosts should not be present in the map.
Returnsiterator from MergeSorter.iter_topo_order()
def show_pending_merges(new, to_file, short=False):
Write out a display of pending merges in a working tree.
API Documentation for BzrLib, generated by pydoctor at 2008-06-25 00:00:15.