95
95
from osutils import format_date
96
96
from errors import BzrCheckError
97
from diff import compare_trees
97
from diff import compare_inventories
98
98
from textui import show_status
99
from inventory import Inventory
100
101
if to_file == None:
114
115
branch._need_readlock()
117
from tree import EmptyTree
118
prev_tree = EmptyTree()
118
prev_inv = Inventory()
119
119
for revno, revision_id in which_revs():
120
120
print >>to_file, '-' * 60
121
121
print >>to_file, 'revno:', revno
140
140
# Don't show a list of changed files if we were asked about
141
141
# one specific file.
144
this_tree = branch.revision_tree(revision_id)
145
delta = compare_trees(prev_tree, this_tree, want_unchanged=False)
146
delta.show(to_file, show_ids)
147
prev_tree = this_tree
143
if verbose and not filename:
144
this_inv = branch.get_inventory(rev.inventory_id)
145
delta = compare_inventories(prev_inv, this_inv)
148
print >>to_file, 'removed files:'
149
for path, fid in delta.removed:
151
print >>to_file, ' %-30s %s' % (path, fid)
153
print >>to_file, ' ', path
155
print >>to_file, 'added files:'
156
for path, fid in delta.added:
158
print >>to_file, ' %-30s %s' % (path, fid)
160
print >>to_file, ' ' + path
162
print >>to_file, 'renamed files:'
163
for oldpath, newpath, fid in delta.renamed:
165
print >>to_file, ' %s => %s %s' % (oldpath, newpath, fid)
167
print >>to_file, ' %s => %s' % (oldpath, newpath)
169
print >>to_file, 'modified files:'
170
for path, fid in delta.modified:
172
print >>to_file, ' %-30s %s' % (path, fid)
174
print >>to_file, ' ' + path
149
178
precursor = revision_id