~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Robert Collins
  • Date: 2007-03-06 10:51:27 UTC
  • mto: (2321.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070306105127-tdec4zgv1tkfgi1d
Fix failing detection of changes restricted to subtrees causing spurious pointless commit errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
        self.text_id = text_id
298
298
        self.parent_id = parent_id
299
299
        self.symlink_target = None
 
300
        self.reference_revision = None
300
301
 
301
302
    def kind_character(self):
302
303
        """Return a short kind indicator useful for appending to names."""
469
470
                and (self.kind == other.kind)
470
471
                and (self.revision == other.revision)
471
472
                and (self.executable == other.executable)
 
473
                and (self.reference_revision == other.reference_revision)
472
474
                )
473
475
 
474
476
    def __ne__(self, other):
509
511
class RootEntry(InventoryEntry):
510
512
 
511
513
    __slots__ = ['text_sha1', 'text_size', 'file_id', 'name', 'kind',
512
 
                 'text_id', 'parent_id', 'children', 'executable', 
513
 
                 'revision', 'symlink_target']
 
514
                 'text_id', 'parent_id', 'children', 'executable',
 
515
                 'revision', 'symlink_target', 'reference_revision']
514
516
 
515
517
    def _check(self, checker, rev_id, tree):
516
518
        """See InventoryEntry._check"""
538
540
    """A directory in an inventory."""
539
541
 
540
542
    __slots__ = ['text_sha1', 'text_size', 'file_id', 'name', 'kind',
541
 
                 'text_id', 'parent_id', 'children', 'executable', 
542
 
                 'revision', 'symlink_target']
 
543
                 'text_id', 'parent_id', 'children', 'executable',
 
544
                 'revision', 'symlink_target', 'reference_revision']
543
545
 
544
546
    def _check(self, checker, rev_id, tree):
545
547
        """See InventoryEntry._check"""
585
587
    """A file in an inventory."""
586
588
 
587
589
    __slots__ = ['text_sha1', 'text_size', 'file_id', 'name', 'kind',
588
 
                 'text_id', 'parent_id', 'children', 'executable', 
589
 
                 'revision', 'symlink_target']
 
590
                 'text_id', 'parent_id', 'children', 'executable',
 
591
                 'revision', 'symlink_target', 'reference_revision']
590
592
 
591
593
    def _check(self, checker, tree_revision_id, tree):
592
594
        """See InventoryEntry._check"""
733
735
    """A file in an inventory."""
734
736
 
735
737
    __slots__ = ['text_sha1', 'text_size', 'file_id', 'name', 'kind',
736
 
                 'text_id', 'parent_id', 'children', 'executable', 
737
 
                 'revision', 'symlink_target']
 
738
                 'text_id', 'parent_id', 'children', 'executable',
 
739
                 'revision', 'symlink_target', 'reference_revision']
738
740
 
739
741
    def _check(self, checker, rev_id, tree):
740
742
        """See InventoryEntry._check"""