~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_3.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-20 14:19:50 UTC
  • mfrom: (5900.1.2 wt-lock-file-ids)
  • Revision ID: pqm@pqm.ubuntu.com-20110520141950-6xozwjkmcb90y45l
(jelmer) Only reset the ignores on the unlock of the last lock on a tree,
 not every unlock. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        return [('trees', self.last_revision())]
73
73
 
74
74
    def unlock(self):
75
 
        # do non-implementation specific cleanup
76
 
        self._cleanup()
77
75
        if self._control_files._lock_count == 1:
 
76
           # do non-implementation specific cleanup
 
77
            self._cleanup()
78
78
            # _inventory_is_modified is always False during a read lock.
79
79
            if self._inventory_is_modified:
80
80
                self.flush()