[PATCH] localrepo: document lock(), wlock() methods

timeless timeless at gmail.com
Wed Jul 22 01:15:28 CDT 2009


>     def lock(self, wait=True):
> +        '''Take out a lock on the repository and return a weak reference
> +        to the lock.  Use this before modifying the repository.'''

> @@ -662,6 +664,9 @@
>     def wlock(self, wait=True):
> +        '''Take out a lock on the working copy and return a weak
> +        reference to the lock.  Use this before modifying files in the
> +        working copy.'''

Personally, i'd like to warn you about using "take out" [1] ever.

commander to soldier: "Take out that guy over there!"
soldier: "yes sir."
soldier shoots guy.

"Get" is probably a better verb. If you like books and birds (of any
kind [2]), you can "Check them out".

[1] http://www.urbandictionary.com/define.php?term=take+out
[2] http://www.urbandictionary.com/define.php?term=bird&defid=5124



More information about the Mercurial-devel mailing list