##// END OF EJS Templates
test-fncache: use args/kwargs for lock wrapper...
Siddharth Agarwal -
r26497:ca778cbe default
parent child Browse files
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, acquirefn, desc, parentenvvar=None):
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, acquirefn, desc)
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