Show More
@@ -121,8 +121,10 b' We build a server side extension for thi' | |||
|
121 | 121 | > import atexit |
|
122 | 122 | > from mercurial import error, extensions, bookmarks |
|
123 | 123 | > |
|
124 | > def wait(): | |
|
124 | > def wait(repo): | |
|
125 | 125 | > if not os.path.exists('push-A-started'): |
|
126 | > assert repo._currentlock(repo._lockref) is None | |
|
127 | > assert repo._currentlock(repo._wlockref) is None | |
|
126 | 128 | > print('setting raced push up') |
|
127 | 129 | > with open('push-A-started', 'w'): |
|
128 | 130 | > pass |
@@ -134,7 +136,7 b' We build a server side extension for thi' | |||
|
134 | 136 | > time.sleep(0.1) |
|
135 | 137 | > |
|
136 | 138 | > def wrapinit(orig, self, repo): |
|
137 | > wait() | |
|
139 | > wait(repo) | |
|
138 | 140 | > return orig(self, repo) |
|
139 | 141 | > def uisetup(ui): |
|
140 | 142 | > extensions.wrapfunction(bookmarks.bmstore, '__init__', wrapinit) |
General Comments 0
You need to be logged in to leave comments.
Login now