Patchwork D11777: dirstate: clarify a `hg update` invocation in a test

login
register
mail settings
Submitter phabricator
Date Nov. 24, 2021, 11:11 a.m.
Message ID <differential-rev-PHID-DREV-kwvauy3sqetlku2aob2e-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50103/
State New
Headers show

Comments

phabricator - Nov. 24, 2021, 11:11 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  It is common for reader of that test to confuse this `hg co` call with a `hg
  commit`, while this is actually `hg checkout`, an alias for the more common `hg
  update. So lets use the clearer version.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11777

AFFECTED FILES
  tests/test-dirstate-race.t

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-dirstate-race.t b/tests/test-dirstate-race.t
--- a/tests/test-dirstate-race.t
+++ b/tests/test-dirstate-race.t
@@ -18,7 +18,7 @@ 
 Do we ever miss a sub-second change?:
 
   $ for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
-  >     hg co -qC 0
+  >     hg update -qC 0
   >     echo b > a
   >     hg st
   > done