[Updated] 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
Thu May 19 10:37:23 UTC 2022
baymax added a comment.
baymax edited the summary of this revision.
baymax updated this revision to Diff 33416.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12618?vs=33370&id=33416
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
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220519/76bd41cf/attachment-0002.html>
More information about the Mercurial-patches
mailing list