~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Robert Collins
  • Date: 2007-09-20 07:59:48 UTC
  • mto: (2840.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2842.
  • Revision ID: robertc@robertcollins.net-20070920075948-6f32d46hr3oyw4zb
Review feedback, and fix pointless commits with nested trees to raise PointlessCommit appropriately.

Show diffs side-by-side

added added

removed removed

Lines of Context:
879
879
    def _forget_tree_state(self):
880
880
        self.reference_revision = None 
881
881
 
 
882
    def _unchanged(self, previous_ie):
 
883
        """See InventoryEntry._unchanged."""
 
884
        compatible = super(TreeReference, self)._unchanged(previous_ie)
 
885
        if self.reference_revision != previous_ie.reference_revision:
 
886
            compatible = False
 
887
        return compatible
 
888
 
882
889
 
883
890
class Inventory(object):
884
891
    """Inventory of versioned files in a tree.