##// END OF EJS Templates
eol: make sure we always release the wlock when writing cache...
Pierre-Yves David -
r30164:1c518d69 default
parent child Browse files
Show More
@@ -360,7 +360,6 b' def reposetup(ui, repo):'
360 # Write the cache to update mtime and cache .hgeol
360 # Write the cache to update mtime and cache .hgeol
361 with self.vfs("eol.cache", "w") as f:
361 with self.vfs("eol.cache", "w") as f:
362 f.write(hgeoldata)
362 f.write(hgeoldata)
363 wlock.release()
364 except error.LockUnavailable:
363 except error.LockUnavailable:
365 # If we cannot lock the repository and clear the
364 # If we cannot lock the repository and clear the
366 # dirstate, then a commit might not see all files
365 # dirstate, then a commit might not see all files
@@ -368,6 +367,9 b' def reposetup(ui, repo):'
368 # repository, then we can also not make a commit,
367 # repository, then we can also not make a commit,
369 # so ignore the error.
368 # so ignore the error.
370 pass
369 pass
370 finally:
371 if wlock is not None:
372 wlock.release()
371
373
372 def commitctx(self, ctx, haserror=False):
374 def commitctx(self, ctx, haserror=False):
373 for f in sorted(ctx.added() + ctx.modified()):
375 for f in sorted(ctx.added() + ctx.modified()):
General Comments 0
You need to be logged in to leave comments. Login now