[PATCH] pull: hold wlock for the full operation when --update is used

Yuya Nishihara yuya at tcha.org
Thu Jan 11 08:19:39 EST 2018


On Thu, 11 Jan 2018 12:11:36 +0000, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1515671879 0
> #      Thu Jan 11 11:57:59 2018 +0000
> # Node ID ba6760b14c221377e11f5a841b6794e7b1f858ad
> # Parent  58fda95a0202fc6327d1f5d9df26f7ff16538d57
> # EXP-Topic update-wlock
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r ba6760b14c22
> pull: hold wlock for the full operation when --update is used
> 
> With now, the wlock is not held between the pull and the update. This can lead
> to race condition and make logic checking to post pull results more complicated
> (eg: with _afterlock).

Queued, thanks.


More information about the Mercurial-devel mailing list