Part of bzrlib
Function | report_changes | Display summary of changes. |
Function | show_tree_status | Display summary of changes. |
Function | show_pending_merges | Write out a display of pending merges in a working tree. |
Class | StatusHooks | A dictionary mapping hook name to a list of callables for status hooks. |
Class | StatusHookParams | Object holding parameters passed to post_status hooks. |
Function | _get_sorted_revisions | Get an iterator which will return the revisions in merge sorted order. |
Function | _filter_nonexistent | Convert orig_paths to two sorted lists and return them. |
Function | _show_shelve_summary | post_status hook to display a summary of shelves. |
This compares two trees with regards to a list of files, and delegates the display to underlying elements.
For short output, it creates an iterator on all changes, and lets a given reporter display these changes.
For stantard output, it creates a delta of the changes, and forwards it to a callback
Parameters | to_file | If set, write to this file (default stdout.) |
old | Start tree for the comparison | |
end | End tree for the comparison | |
specific_files | If 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_short_reporter | Reporter in charge of display for short output | |
show_long_callback | Callback in charge of display for normal output | |
short | If True, gives short SVN-style status lines. | |
want_unchanged | Deprecated parameter. If set, includes unchanged files. | |
show_ids | If set, includes each file's id. | |
want_unversioned | If False, only shows versioned files. | |
classify | Add special symbols to indicate file kind. |
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.
Parameters | show_unchanged | Deprecated parameter. If set, includes unchanged files. |
specific_files | If 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_ids | If set, includes each file's id. | |
to_file | If set, write to this file (default stdout.) | |
show_pending | If set, write pending merges. | |
revision | If 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. | |
short | If True, gives short SVN-style status lines. | |
verbose | If True, show all merged revisions, not just the merge tips | |
versioned | If True, only shows versioned files. | |
classify | Add special symbols to indicate file kind. | |
show_long_callback | A callback: message = show_long_callback(to_file, delta, show_ids, show_unchanged, indent, filter), only used with the long output |
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.
Parameters | revision_ids | A set of revision_ids |
parent_map | The parent information for each node. Revisions which are considered ghosts should not be present in the map. | |
Returns | iterator from MergeSorter.iter_topo_order() |
The first is orig_paths paths minus the items in the second list, and the second list is paths that are not in either inventory or tree (they don't qualify if they exist in the tree's inventory, or if they exist in the tree but are not versioned.)
If either of the two lists is empty, return it as an empty list.
This can be used by operations such as bzr status that can accept unknown or ignored files.