##// END OF EJS Templates
exchange: use context manager for bundle1 unbundling...
Martin von Zweigbergk -
r32845:58a6f64a default
parent child Browse files
Show More
@@ -1733,7 +1733,7 def unbundle(repo, cg, heads, source, ur
1733 # push can proceed
1733 # push can proceed
1734 if not util.safehasattr(cg, 'params'):
1734 if not util.safehasattr(cg, 'params'):
1735 # legacy case: bundle1 (changegroup 01)
1735 # legacy case: bundle1 (changegroup 01)
1736 lockandtr[1] = repo.lock()
1736 with repo.lock():
1737 r = cg.apply(repo, source, url)
1737 r = cg.apply(repo, source, url)
1738 else:
1738 else:
1739 r = None
1739 r = None
General Comments 0
You need to be logged in to leave comments. Login now