Patchwork D12592: test-dirstate: use new `--docket` flag to get the data uuid

login
register
mail settings
Submitter phabricator
Date April 28, 2022, 3:16 p.m.
Message ID <differential-rev-PHID-DREV-cxx3b3oldfokes5srfqi-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50939/
State New
Headers show

Comments

phabricator - April 28, 2022, 3:16 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This is more robust.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  tests/test-dirstate.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-dirstate.t b/tests/test-dirstate.t
--- a/tests/test-dirstate.t
+++ b/tests/test-dirstate.t
@@ -129,7 +129,7 @@ 
   > }
 
   $ find_dirstate_uuid () {
-  >   dirstate_data_files | sed 's#.hg/dirstate.##'
+  >   hg debugstate --docket | grep uuid | sed 's/.*uuid: \(.*\)/\1/'
   > }
 
   $ dirstate_uuid_has_not_changed () {