Show More
@@ -917,9 +917,8 b' class localrepository(repo.repository):' | |||||
917 |
|
917 | |||
918 | The callback will be executed on lock release.""" |
|
918 | The callback will be executed on lock release.""" | |
919 | l = self._lockref and self._lockref() |
|
919 | l = self._lockref and self._lockref() | |
920 | assert l is not None |
|
920 | if l: | |
921 | assert l.held |
|
921 | l.postreleasehooks.append(callback) | |
922 | l.postreleasehooks.append(callback) |
|
|||
923 |
|
922 | |||
924 | def lock(self, wait=True): |
|
923 | def lock(self, wait=True): | |
925 | '''Lock the repository store (.hg/store) and return a weak reference |
|
924 | '''Lock the repository store (.hg/store) and return a weak reference |
General Comments 0
You need to be logged in to leave comments.
Login now