mercurial/localrepo.py
changeset 7077 ccbd39cad3c3
parent 7072 4e0d54fbd34f
child 7090 7b5c063b0b94
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,