~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-10 06:14:23 UTC
  • mfrom: (1755.3.12 reduce-chmod)
  • Revision ID: pqm@pqm.ubuntu.com-20060810061423-3ae5999a70b60211
(robertc,jam) tweak Transport.append and AtomicFile so put and append are cheaper

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from bzrlib.inventory import InventoryEntry
18
18
from bzrlib.trace import mutter
19
 
from bzrlib.symbol_versioning import deprecated_function, zero_nine
 
19
from bzrlib.symbol_versioning import deprecated_function, zero_ten
20
20
 
21
21
 
22
22
class TreeDelta(object):
143
143
            show_list(self.unchanged)
144
144
 
145
145
 
146
 
@deprecated_function(zero_nine)
 
146
@deprecated_function(zero_ten)
147
147
def compare_trees(old_tree, new_tree, want_unchanged=False,
148
148
                  specific_files=None, extra_trees=None,
149
149
                  require_versioned=False):
162
162
    old_inv = old_tree.inventory
163
163
    new_inv = new_tree.inventory
164
164
    delta = TreeDelta()
165
 
    # mutter('start compare_trees')
 
165
    mutter('start compare_trees')
166
166
 
167
167
    # TODO: Rather than iterating over the whole tree and then filtering, we
168
168
    # could diff just the specified files (if any) and their subtrees.