comparison mercurial/localrepo.py @ 7077:ccbd39cad3c3

context: improve memctx documentation
author Patrick Mezard <pmezard@gmail.com>
date Sat, 11 Oct 2008 13:07:29 +0200
parents 4e0d54fbd34f
children 7b5c063b0b94
comparison
equal deleted inserted replaced
7076:c29d3f4ed967 7077:ccbd39cad3c3
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,