##// END OF EJS Templates
record: drop a now useless overlay that grab the lock...
marmoute -
r51097:fef5bca9 default
parent child Browse files
Show More
@@ -469,6 +469,7 b' def dorecord('
469 In the end we'll record interesting changes, and everything else
469 In the end we'll record interesting changes, and everything else
470 will be left in place, so the user can continue working.
470 will be left in place, so the user can continue working.
471 """
471 """
472 assert repo.currentwlock() is not None
472 if not opts.get(b'interactive-unshelve'):
473 if not opts.get(b'interactive-unshelve'):
473 checkunfinished(repo, commit=True)
474 checkunfinished(repo, commit=True)
474 wctx = repo[None]
475 wctx = repo[None]
@@ -669,11 +670,7 b' def dorecord('
669 except OSError:
670 except OSError:
670 pass
671 pass
671
672
672 def recordinwlock(ui, repo, message, match, opts):
673 return commit(ui, repo, recordfunc, pats, opts)
673 with repo.wlock():
674 return recordfunc(ui, repo, message, match, opts)
675
676 return commit(ui, repo, recordinwlock, pats, opts)
677
674
678
675
679 class dirnode:
676 class dirnode:
General Comments 0
You need to be logged in to leave comments. Login now