##// 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 210 > def lockexception(orig, vfs, lockname, wait, releasefn, *args, **kwargs):
211 211 > def releasewrap():
212 > l.held = False # ensure __del__ is a noop
212 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 217 > def reposetup(ui, repo):
216 218 > wrapfunction(repo, '_lock', lockexception)
@@ -225,7 +227,6 b' Aborting lock does not prevent fncache w'
225 227 $ touch y
226 228 $ hg ci -qAm y
227 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 230 [255]
230 231 $ cat .hg/store/fncache
231 232 data/y.i
General Comments 0
You need to be logged in to leave comments. Login now