##// END OF EJS Templates
test-fncache: ensure lock doesn't look held to __del__...
Augie Fackler -
r27168:8a829fc8 default
parent child Browse files
Show More
@@ -209,8 +209,10 b' Aborting lock does not prevent fncache w'
209 >
209 >
210 > def lockexception(orig, vfs, lockname, wait, releasefn, *args, **kwargs):
210 > def lockexception(orig, vfs, lockname, wait, releasefn, *args, **kwargs):
211 > def releasewrap():
211 > def releasewrap():
212 > l.held = False # ensure __del__ is a noop
212 > raise error.Abort("forced lock failure")
213 > raise error.Abort("forced lock failure")
213 > return orig(vfs, lockname, wait, releasewrap, *args, **kwargs)
214 > l = orig(vfs, lockname, wait, releasewrap, *args, **kwargs)
215 > return l
214 >
216 >
215 > def reposetup(ui, repo):
217 > def reposetup(ui, repo):
216 > wrapfunction(repo, '_lock', lockexception)
218 > wrapfunction(repo, '_lock', lockexception)
@@ -225,7 +227,6 b' Aborting lock does not prevent fncache w'
225 $ touch y
227 $ touch y
226 $ hg ci -qAm y
228 $ hg ci -qAm y
227 abort: forced lock failure
229 abort: forced lock failure
228 Exception mercurial.error.Abort: Abort('forced lock failure',) in <bound method lock.__del__ of <mercurial.lock.lock object at *>> ignored (glob)
229 [255]
230 [255]
230 $ cat .hg/store/fncache
231 $ cat .hg/store/fncache
231 data/y.i
232 data/y.i
General Comments 0
You need to be logged in to leave comments. Login now