140
140
raise errors.BzrCommandError(str(e))
143
_raise_if_nonexistent(specific_files, old, new)
145
specific_file_ids = tree.find_ids_across_trees(specific_files,
146
(old, new), require_versioned=False)
147
changes = new._iter_changes(old, show_unchanged,
149
reporter = _mod_delta.ChangeReporter(old.inventory,
151
_mod_delta.report_changes(changes, reporter)
153
delta = new.changes_from(old, want_unchanged=show_unchanged,
154
specific_files=specific_files)
157
show_unchanged=show_unchanged,
160
short_status_letter = '? '
162
short_status_letter = ''
163
list_paths('unknown', new.unknowns(), specific_files, to_file,
165
conflict_title = False
166
# show the new conflicts only for now. XXX: get them from the delta.
167
for conflict in new.conflicts():
168
if not short and conflict_title is False:
169
print >> to_file, "conflicts:"
170
conflict_title = True
146
_raise_if_nonexistent(specific_files, old, new)
147
want_unversioned = not versioned
149
changes = new._iter_changes(old, show_unchanged, specific_files,
150
require_versioned=False, want_unversioned=want_unversioned)
151
reporter = _mod_delta.ChangeReporter(output_file=to_file,
152
unversioned_filter=new.is_ignored)
153
_mod_delta.report_changes(changes, reporter)
175
print >> to_file, "%s %s" % (prefix, conflict)
176
if new_is_working_tree and show_pending:
177
show_pending_merges(new, to_file, short)
155
delta = new.changes_from(old, want_unchanged=show_unchanged,
156
specific_files=specific_files,
157
want_unversioned=want_unversioned)
158
# filter out unknown files. We may want a tree method for
160
delta.unversioned = [unversioned for unversioned in
161
delta.unversioned if not new.is_ignored(unversioned[0])]
164
show_unchanged=show_unchanged,
166
conflict_title = False
167
# show the new conflicts only for now. XXX: get them from the delta.
168
for conflict in new.conflicts():
169
if not short and conflict_title is False:
170
print >> to_file, "conflicts:"
171
conflict_title = True
176
print >> to_file, "%s %s" % (prefix, conflict)
177
if new_is_working_tree and show_pending:
178
show_pending_merges(new, to_file, short)
232
236
print >> to_file, prefix, merge
234
def list_paths(header, paths, specific_files, to_file, short_status_letter=''):
237
if specific_files and not is_inside_any(specific_files, path):
239
if not short_status_letter and not done_header:
240
print >>to_file, '%s:' % header
242
print >>to_file, '%s %s' % (short_status_letter, path)