~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-21 12:51:25 UTC
  • mfrom: (6468.3.1 bzr)
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120221125125-7cpkwjmvf3aj2d9x
MergeĀ lp:~jelmer/bzr/use-tree-iter-children

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
        annotations = annotator.annotate_flat(text_key)
243
243
        return [(key[-1], line) for key, line in annotations]
244
244
 
245
 
    def __eq__(self, other):
246
 
        if self is other:
247
 
            return True
248
 
        if isinstance(other, InventoryRevisionTree):
249
 
            return (self.root_inventory == other.root_inventory)
250
 
        return False
251
 
 
252
 
    def __ne__(self, other):
253
 
        return not (self == other)
254
 
 
255
 
    def __hash__(self):
256
 
        raise ValueError('not hashable')
257
 
 
258
245
 
259
246
class InterCHKRevisionTree(tree.InterTree):
260
247
    """Fast path optimiser for RevisionTrees with CHK inventories."""