/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Daniel Watkins
  • Date: 2007-08-01 18:23:29 UTC
  • mto: (2685.1.1 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 2686.
  • Revision ID: d.m.watkins@warwick.ac.uk-20070801182329-vf71f4u36kibs0n0
Added _cleanup() to the unlock() method of all implementations of WorkingTree so that the cached ignore definitions are wiped when a lock is lost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2409
2409
            raise
2410
2410
 
2411
2411
    def unlock(self):
 
2412
        # do non-implementation specific cleanup
 
2413
        self._cleanup()
 
2414
 
2412
2415
        # we share control files:
2413
2416
        if self._control_files._lock_count == 3:
2414
2417
            # _inventory_is_modified is always False during a read lock.
2480
2483
        return _mod_conflicts.ConflictList.from_stanzas(RioReader(confile))
2481
2484
 
2482
2485
    def unlock(self):
 
2486
        # do non-implementation specific cleanup
 
2487
        self._cleanup()
2483
2488
        if self._control_files._lock_count == 1:
2484
2489
            # _inventory_is_modified is always False during a read lock.
2485
2490
            if self._inventory_is_modified: