##// END OF EJS Templates
with: use context manager for wlock in graft
Bryan O'Sullivan -
r27808:0c48c566 default
parent child Browse files
Show More
@@ -3869,12 +3869,8 b' def graft(ui, repo, *revs, **opts):'
3869 3869
3870 3870 Returns 0 on successful completion.
3871 3871 '''
3872 wlock = None
3873 try:
3874 wlock = repo.wlock()
3872 with repo.wlock():
3875 3873 return _dograft(ui, repo, *revs, **opts)
3876 finally:
3877 release(wlock)
3878 3874
3879 3875 def _dograft(ui, repo, *revs, **opts):
3880 3876 revs = list(revs)
General Comments 0
You need to be logged in to leave comments. Login now