--- a/hgext/largefiles/overrides.py Fri Jan 15 13:14:46 2016 -0800
+++ b/hgext/largefiles/overrides.py Fri Jan 15 13:14:47 2016 -0800
@@ -1337,8 +1337,7 @@
matcher = kwargs.get('matcher', None)
# note if this is a partial update
partial = matcher and not matcher.always()
- wlock = repo.wlock()
- try:
+ with repo.wlock():
# branch | | |
# merge | force | partial | action
# -------+-------+---------+--------------
@@ -1387,8 +1386,6 @@
normallookup=partial)
return result
- finally:
- wlock.release()
def scmutilmarktouched(orig, repo, files, *args, **kwargs):
result = orig(repo, files, *args, **kwargs)