test-dirstate: use new `--docket` flag to get the data uuid stable
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 28 Apr 2022 16:24:55 +0200
branchstable
changeset 49154 51262af89efe
parent 49153 308e45f7b455
child 49155 c69adc82e7f7
test-dirstate: use new `--docket` flag to get the data uuid This is more robust. Differential Revision: https://phab.mercurial-scm.org/D12592
tests/test-dirstate.t
--- a/tests/test-dirstate.t	Thu Apr 28 15:22:08 2022 +0200
+++ b/tests/test-dirstate.t	Thu Apr 28 16:24:55 2022 +0200
@@ -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 () {