Mercurial > public > mercurial-scm > hg
comparison mercurial/lock.py @ 17427:57c6c24b9bc4
improve some comments and docstrings, fixing issues found when spell checking
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 21 Aug 2012 02:41:20 +0200 |
parents | e7cfe3587ea4 |
children | 31f32a96e1e3 |
comparison
equal
deleted
inserted
replaced
17426:9724f8f8850b | 17427:57c6c24b9bc4 |
---|---|
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 have been acquired multiple time, the actual release is | 125 If the lock has been acquired multiple time, 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 |