comparison mercurial/lock.py @ 17537:31f32a96e1e3

Merge spelling fixes
author Bryan O'Sullivan <bryano@fb.com>
date Tue, 11 Sep 2012 08:36:09 -0700
parents 57c6c24b9bc4 7c44b703657b
children 6d7db5794e8c
comparison
equal deleted inserted replaced
17475:63e45aee46d4 17537:31f32a96e1e3
120 return locker 120 return locker
121 121
122 def release(self): 122 def release(self):
123 """release the lock and execute callback function if any 123 """release the lock and execute callback function if any
124 124
125 If the lock has been acquired multiple time, the actual release is 125 If the lock has been acquired multiple times, the actual release is
126 delayed to the last release call.""" 126 delayed to the last release call."""
127 if self.held > 1: 127 if self.held > 1:
128 self.held -= 1 128 self.held -= 1
129 elif self.held == 1: 129 elif self.held == 1:
130 self.held = 0 130 self.held = 0