[PATCH] Document Mercurial's locking scheme a little better:

David Soria Parra sn_ at gmx.net
Wed Aug 5 05:34:32 CDT 2009


On 2009-08-04, Greg Ward <greg-hg at gerg.ca> wrote:
>      def lock(self, wait=True):
> +        '''Lock the repository store (.hg/store) and return a weak
> +        reference to the lock.  Use this before modifying the store
> +        (e.g. committing or stripping).  (Hint: if you are opening a
> +        transaction, you should probably hold a lock as well.)'''

I think we should remove the Hint...probably part. Probably shouldn't be
used in a documentation.



More information about the Mercurial-devel mailing list