##// END OF EJS Templates
hg: obtain lock when creating share from pooled repo (issue5104)...
hg: obtain lock when creating share from pooled repo (issue5104) There are race conditions between clients performing a shared clone to pooled storage: 1) Clients race to create the new shared repo in the pool directory 2) 1 client is seeding the repo in the pool directory and another goes to share it before it is fully cloned We prevent these race conditions by obtaining a lock in the pool directory that is derived from the name of the repo we will be accessing. To test this, a simple generic "lockdelay" extension has been added. The extension inserts an optional, configurable delay before or after lock acquisition. In the test, we delay 2 seconds after lock acquisition in the first process and 1 second before lock acquisition in the 2nd process. This means the first process has 1s to obtain the lock. There is a race condition here. If we encounter it in the wild, we could change the dummy extension to wait on the lock file to appear instead of relying on timing. But that's more complicated. Let's see what happens first.

File last commit:

r26421:4b0fc75f default
r28289:d493d647 3.7.2 stable
Show More
README
20 lines | 544 B | text/plain | TextLexer
Martin Geisler
README: add small introduction
r12857 Mercurial
=========
Mercurial is a fast, easy to use, distributed revision control tool
for software developers.
Matt Mackall
Move README info to wiki
r3935 Basic install:
mpm@selenic.com
Add back links from file revisions to changeset revisions...
r0
Matt Mackall
Move README info to wiki
r3935 $ make # see install targets
$ make install # do a system-wide install
$ hg debuginstall # sanity-check setup
$ hg # see help
mpm@selenic.com
README: integrate some changes from Kevin Smith...
r205
Ross Lagerwall
readme: mention how to run in-place...
r16217 Running without installing:
$ make local # build for inplace usage
$ ./hg --version # should show the latest version
Matt Mackall
urls: bulk-change primary website URLs
r26421 See https://mercurial-scm.org/ for detailed installation
Matt Mackall
Move README info to wiki
r3935 instructions, platform-specific notes, and Mercurial user information.