##// 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 Revision information is passed in the context.memctx argument.
830 Revision information is passed in the context.memctx argument.
831 commitctx() does not touch the working directory.
831 commitctx() does not touch the working directory.
832 """
832 """
833 wlock = lock = None
833 lock = self.lock()
834 try:
834 try:
835 wlock = self.wlock()
836 lock = self.lock()
837 return self._commitctx(ctx, force=True, force_editor=False,
835 return self._commitctx(ctx, force=True, force_editor=False,
838 empty_ok=True, use_dirstate=False,
836 empty_ok=True, use_dirstate=False,
839 update_dirstate=False)
837 update_dirstate=False)
840 finally:
838 finally:
841 release(lock, wlock)
839 lock.release()
842
840
843 def _commitctx(self, wctx, force=False, force_editor=False, empty_ok=False,
841 def _commitctx(self, wctx, force=False, force_editor=False, empty_ok=False,
844 use_dirstate=True, update_dirstate=True):
842 use_dirstate=True, update_dirstate=True):
General Comments 0
You need to be logged in to leave comments. Login now