19
19
def show_status(branch, show_unchanged=False,
22
24
"""Display single-line status for non-ignored working files.
25
27
If true, show unmodified files too.
28
30
If set, only show the status of files in this list.
33
If set, write to this file (default stdout.)
33
branch._need_readlock()
35
old = branch.basis_tree()
36
new = branch.working_tree()
39
raise NotImplementedError("sorry, status on selected files is not implemented "
42
delta = diff.compare_trees(old, new, want_unchanged=show_unchanged)
44
delta.show(sys.stdout, show_ids=show_ids,
45
show_unchanged=show_unchanged)
47
unknowns = new.unknowns()
51
print 'unknown files:'
36
from bzrlib.delta import compare_trees
44
old = branch.basis_tree()
45
new = branch.working_tree()
47
delta = compare_trees(old, new, want_unchanged=show_unchanged,
48
specific_files=specific_files)
52
show_unchanged=show_unchanged)
54
unknowns = new.unknowns()
57
# FIXME: Should also match if the unknown file is within a
58
# specified directory.
60
if path not in specific_files:
63
print >>to_file, 'unknown:'
65
print >>to_file, ' ', path
66
if show_pending and len(branch.pending_merges()) > 0:
67
print >>to_file, 'pending merges:'
68
for merge in branch.pending_merges():
69
print >> to_file, ' ', merge