Show More
@@ -205,10 +205,10 b' Aborting lock does not prevent fncache w' | |||
|
205 | 205 | > from mercurial import commands, util |
|
206 | 206 | > from mercurial.extensions import wrapfunction |
|
207 | 207 | > |
|
208 |
> def lockexception(orig, vfs, lockname, wait, releasefn, |
|
|
208 | > def lockexception(orig, vfs, lockname, wait, releasefn, *args, **kwargs): | |
|
209 | 209 | > def releasewrap(): |
|
210 | 210 | > raise util.Abort("forced lock failure") |
|
211 |
> return orig(vfs, lockname, wait, releasewrap, |
|
|
211 | > return orig(vfs, lockname, wait, releasewrap, *args, **kwargs) | |
|
212 | 212 | > |
|
213 | 213 | > def reposetup(ui, repo): |
|
214 | 214 | > wrapfunction(repo, '_lock', lockexception) |
General Comments 0
You need to be logged in to leave comments.
Login now