~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Robert Collins
  • Date: 2006-07-24 06:54:03 UTC
  • mto: (1852.9.1 Tree.compare().)
  • mto: This revision was merged to the branch mainline in revision 1892.
  • Revision ID: robertc@robertcollins.net-20060724065403-5caf939744887f69
Add InterTree class to represent InterTree operations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from bzrlib.errors import BzrError, BzrCheckError
26
26
from bzrlib import errors
27
27
from bzrlib.inventory import Inventory
 
28
from bzrlib.inter import InterObject
28
29
from bzrlib.osutils import fingerprint_file
29
30
import bzrlib.revision
30
31
from bzrlib.trace import mutter, note
320
321
        interesting_ids.update(new_pending)
321
322
        pending = new_pending
322
323
    return interesting_ids
 
324
 
 
325
 
 
326
class InterTree(InterObject):
 
327
    """This class represents operations taking place between two Trees.
 
328
 
 
329
    Its instances have methods like 'compare' and contain references to the
 
330
    source and target trees these operations are to be carried out on.
 
331
 
 
332
    clients of bzrlib should not need to use InterTree directly, rather they
 
333
    should use the convenience methods on Tree such as 'Tree.compare()' which
 
334
    will pass through to InterTree as appropriate.
 
335
    """
 
336
 
 
337
    _optimisers = set()
 
338
 
 
339
 
 
340