Mercurial > hg
comparison tests/test-lock-badness.t @ 26028:6fbe35588433 stable
update: wlock the repo for the whole 'hg update' command
The update command is touching the repository and should lock it for
the length of its operations. Equally importantly, it should lock the
repository when it is writing bookmarks. It wasn't doing so until now,
leaving doors open for all kinds of drunk beaver parties.
This results in some minor tests changes, and the fixing of a couple
of bugs from race conditions.
Code does not receive any changes beside extra indentation.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 11 Aug 2015 16:26:12 -0700 |
parents | f484be02bd35 |
children | 56b2bcea2529 |
comparison
equal
deleted
inserted
replaced
26027:7b7e25a85f63 | 26028:6fbe35588433 |
---|---|
57 $ echo b > b/b | 57 $ echo b > b/b |
58 $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout & | 58 $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout & |
59 $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf" | 59 $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf" |
60 waiting for lock on working directory of b held by '*:*' (glob) | 60 waiting for lock on working directory of b held by '*:*' (glob) |
61 got lock after ? seconds (glob) | 61 got lock after ? seconds (glob) |
62 warning: ignoring unknown working parent d2ae7f538514! | |
63 $ wait | 62 $ wait |
64 $ cat stdout | 63 $ cat stdout |
65 adding b | 64 adding b |
66 | 65 |
67 Pushing to a local read-only repo that can't be locked | 66 Pushing to a local read-only repo that can't be locked |