106
107
If not None it must be a RevisionSpec list.
107
108
If one revision show compared it with working tree.
108
109
If two revisions show status between first and second.
109
:param short: If True, gives short SVN-style status lines
110
:param short: If True, gives short SVN-style status lines.
111
:param versioned: If True, only shows versioned files.
111
113
if show_unchanged is not None:
112
114
warn("show_status_trees with show_unchanged has been deprecated "
138
140
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
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)
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)
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)
229
236
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)