##// END OF EJS Templates
commitctx: simplify locking...
Matt Mackall -
r8398:a45eb410 default
parent child Browse files
Show More
@@ -830,15 +830,13 b' class localrepository(repo.repository):'
830 830 Revision information is passed in the context.memctx argument.
831 831 commitctx() does not touch the working directory.
832 832 """
833 wlock = lock = None
833 lock = self.lock()
834 834 try:
835 wlock = self.wlock()
836 lock = self.lock()
837 835 return self._commitctx(ctx, force=True, force_editor=False,
838 836 empty_ok=True, use_dirstate=False,
839 837 update_dirstate=False)
840 838 finally:
841 release(lock, wlock)
839 lock.release()
842 840
843 841 def _commitctx(self, wctx, force=False, force_editor=False, empty_ok=False,
844 842 use_dirstate=True, update_dirstate=True):
General Comments 0
You need to be logged in to leave comments. Login now