~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/weave_fmt/workingtree.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:
174
174
            raise
175
175
 
176
176
    def unlock(self):
177
 
        # do non-implementation specific cleanup
178
 
        self._cleanup()
179
 
 
180
177
        # we share control files:
181
178
        if self._control_files._lock_count == 3:
 
179
            # do non-implementation specific cleanup
 
180
            self._cleanup()
182
181
            # _inventory_is_modified is always False during a read lock.
183
182
            if self._inventory_is_modified:
184
183
                self.flush()