Mercurial > public > mercurial-scm > hg
comparison mercurial/lock.py @ 17424:e7cfe3587ea4
fix trivial spelling errors
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 15 Aug 2012 22:38:42 +0200 |
parents | cc24e4ed3e0c |
children | 57c6c24b9bc4 |
comparison
equal
deleted
inserted
replaced
17406:fc14953e8e34 | 17424:e7cfe3587ea4 |
---|---|
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 aquired multiple time, the actual release is | 125 If the lock have been acquired multiple time, the actual release is |
126 delayed to the last relase 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 |
131 if self.releasefn: | 131 if self.releasefn: |