19
19
def show_status(branch, show_unchanged=False,
22
22
"""Display single-line status for non-ignored working files.
25
25
If true, show unmodified files too.
28
28
If set, only show the status of files in this list.
31
from bzrlib.diff import compare_trees
36
old = branch.basis_tree()
37
new = branch.working_tree()
39
delta = compare_trees(old, new, want_unchanged=show_unchanged,
40
specific_files=specific_files)
42
delta.show(sys.stdout, show_ids=show_ids,
43
show_unchanged=show_unchanged)
45
unknowns = new.unknowns()
48
# FIXME: Should also match if the unknown file is within a
49
# specified directory.
51
if path not in specific_files:
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:'