Question: Multiple users doing push at the same time

Benoit Boissinot bboissin at gmail.com
Mon Dec 11 21:46:15 UTC 2006


On 12/11/06, Kelly O'Hair <Kelly.Ohair at sun.com> wrote:
> Question: How does Mercurial handle multiple users doing an 'hg push' at
> the same time to the same repository?
>
There is a write lock, so the repo is locked when a process is writing
(commit / pull / unbundle for a local repo, push for a remote repo).
When hg is waiting for a lock, it prints the PID of the process that
locked that repo (only when the operation is local).

> I guess this question may also apply to anyone doing an 'hg pull' in the
> middle of another user doing an 'hg push'.
>
No, the repo is always consistent for a reader (although verify may no pass
in the middle of a push), so we are lockless for readers.

regards,

Benoit



More information about the Mercurial mailing list