~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

Merged changes from transform

Show diffs side-by-side

added added

removed removed

Lines of Context:
407
407
        # first requested, or preload them if they're already known
408
408
        pass            # nothing to do by default
409
409
 
 
410
    def _forget_tree_state(self):
 
411
        pass
 
412
 
410
413
 
411
414
class RootEntry(InventoryEntry):
412
415
 
570
573
        self.text_sha1 = work_tree.get_file_sha1(self.file_id)
571
574
        self.executable = work_tree.is_executable(self.file_id)
572
575
 
 
576
    def _forget_tree_state(self):
 
577
        self.text_sha1 = None
 
578
        self.executable = None
 
579
 
573
580
    def _snapshot_text(self, file_parents, work_tree, weave_store, transaction):
574
581
        """See InventoryEntry._snapshot_text."""
575
582
        mutter('storing file {%s} in revision {%s}',
679
686
        """See InventoryEntry._read_tree_state."""
680
687
        self.symlink_target = work_tree.get_symlink_target(self.file_id)
681
688
 
 
689
    def _forget_tree_state(self):
 
690
        self.symlink_target = None
 
691
 
682
692
    def _unchanged(self, previous_ie):
683
693
        """See InventoryEntry._unchanged."""
684
694
        compatible = super(InventoryLink, self)._unchanged(previous_ie)