[Commented On] D12618: auto-upgrade: add a test case where the repository is already locked
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Tue May 24 14:34:48 UTC 2022
baymax added a comment.
baymax updated this revision to Diff 33431.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12618?vs=33416&id=33431
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12618/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12618
AFFECTED FILES
tests/test-upgrade-repo.t
CHANGE DETAILS
diff --git a/tests/test-upgrade-repo.t b/tests/test-upgrade-repo.t
--- a/tests/test-upgrade-repo.t
+++ b/tests/test-upgrade-repo.t
@@ -2076,3 +2076,18 @@
$ chmod -R u+w auto-upgrade
+Attempting Auto-upgrade on a locked repository
+----------------------------------------------
+
+ $ hg -R auto-upgrade debuglock --set-lock --quiet &
+ $ echo $! >> $DAEMON_PIDS
+ $ $RUNTESTDIR/testlib/wait-on-file 10 auto-upgrade/.hg/store/lock
+ $ hg status -R auto-upgrade \
+ > --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
+ > --config format.use-dirstate-v2=no
+ abort: repository auto-upgrade: timed out waiting for lock held by 'brunhoff/effffffc:1215708'
+ [20]
+ $ hg debugformat -R auto-upgrade | grep dirstate-v2
+ dirstate-v2: yes
+
+ $ killdaemons.py
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220524/162c3b56/attachment-0002.html>
More information about the Mercurial-patches
mailing list