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