equal
deleted
inserted
replaced
786 use_dirstate, update_dirstate) |
786 use_dirstate, update_dirstate) |
787 finally: |
787 finally: |
788 del lock, wlock |
788 del lock, wlock |
789 |
789 |
790 def commitctx(self, ctx): |
790 def commitctx(self, ctx): |
|
791 """Add a new revision to current repository. |
|
792 |
|
793 Revision information is passed in the context.memctx argument. |
|
794 commitctx() does not touch the working directory. |
|
795 """ |
791 wlock = lock = None |
796 wlock = lock = None |
792 try: |
797 try: |
793 wlock = self.wlock() |
798 wlock = self.wlock() |
794 lock = self.lock() |
799 lock = self.lock() |
795 return self._commitctx(ctx, force=True, force_editor=False, |
800 return self._commitctx(ctx, force=True, force_editor=False, |