~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.py

  • Committer: Robert Collins
  • Date: 2007-03-02 04:40:12 UTC
  • mto: (2255.11.3 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070302044012-otqrdw1uhxrw3ar7
Move unknown detection in long status into the delta creation, saving a tree-scan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
            else:
192
192
                show_list(self.unchanged, 'S')
193
193
 
 
194
        if self.unversioned:
 
195
            print >>to_file, 'unknown:'
 
196
            show_list(self.unversioned)
 
197
 
194
198
 
195
199
@deprecated_function(zero_nine)
196
200
def compare_trees(old_tree, new_tree, want_unchanged=False,
217
221
            specific_files, extra_trees=extra_trees,
218
222
            want_unversioned=want_unversioned):
219
223
        if versioned == (False, False):
220
 
            delta.unversioned.append((path, kind[1]))
 
224
            delta.unversioned.append((path, None, kind[1]))
221
225
            continue
222
226
        if not include_root and (None, None) == parent_id:
223
227
            continue