diff options
Diffstat (limited to 'mercurial/lock.py')
-rw-r--r-- | mercurial/lock.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mercurial/lock.py b/mercurial/lock.py index cc2c533..bf33f02 100644 --- a/mercurial/lock.py +++ b/mercurial/lock.py @@ -35,7 +35,6 @@ class lock(object): self.timeout = timeout self.releasefn = releasefn self.desc = desc - self.postrelease = [] self.lock() def __del__(self): @@ -120,10 +119,6 @@ class lock(object): return locker def release(self): - """release the lock and execute callback function if any - - If the lock have been aquired multiple time, the actual release is - delayed to the last relase call.""" if self.held > 1: self.held -= 1 elif self.held == 1: @@ -134,10 +129,9 @@ class lock(object): util.unlink(self.f) except OSError: pass - for callback in self.postrelease: - callback() def release(*locks): for lock in locks: if lock is not None: lock.release() + |