19
19
def show_status(branch, show_unchanged=False,
22
23
"""Display single-line status for non-ignored working files.
25
26
If true, show unmodified files too.
28
29
If set, only show the status of files in this list.
32
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:'
35
from bzrlib.delta import compare_trees
43
old = branch.basis_tree()
44
new = branch.working_tree()
46
delta = compare_trees(old, new, want_unchanged=show_unchanged,
47
specific_files=specific_files)
51
show_unchanged=show_unchanged)
53
unknowns = new.unknowns()
56
# FIXME: Should also match if the unknown file is within a
57
# specified directory.
59
if path not in specific_files:
62
print >>to_file, 'unknown:'
64
print >>to_file, ' ', path