File Locking

Johan Samyn johan.samyn at gmail.com
Thu Aug 18 15:30:23 UTC 2011


On 18-08-2011 15:44, Martin Geisler wrote:
> "Clark Hwang" <Chwang at guhsd.net> writes:
>
> Hi,
>
> This is a reply to an old thread -- I've CCed those of you who seemed to
> be interested in a way to lock files in Mercurial. I hope it is still
> relevant to some of you.
>
>> I'm trying to convince my office to go with Mercurial instead of
>> Subversion. One of the requirement will be to have the ability to lock
>> files so another user would not be able to check it out. Is it
>> possible to implement file locking with Mercurial? Are there sample
>> hooks are there?
> I've written an extension for locking files, please see
>
>   https://bitbucket.org/aragost/hglock
>   http://mercurial.selenic.com/wiki/LockExtension/NewDesign
>

Hi Martin,
Something is not clear to me after reading the page mentioned above. If
you have a central repo with already existing cloned work repos, do you
have to reclone them after executing "hg init-lock" on the central repo
? Do you have to do anything else to have them pick up the locking
config from the central repo ?

-- 
Johan Samyn
_______________________________________________________________
"Perfection is achieved, not when there is nothing more to add,
but when there is nothing left to take away."
- Antoine de Saint-Exupery




More information about the Mercurial mailing list