tests: use debugrequires in test-upgrade-repo.t
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 11 Jan 2022 16:32:38 +0100
changeset 48656 100481195114
parent 48655 c95ace94f3ad
child 48657 68b7faeb6ef3
tests: use debugrequires in test-upgrade-repo.t Whenever possible, we use the `hg debugrequires` command instead of directly grepping the file. Differential Revision: https://phab.mercurial-scm.org/D11984
tests/test-upgrade-repo.t
--- a/tests/test-upgrade-repo.t	Thu Jan 06 17:15:49 2022 +0100
+++ b/tests/test-upgrade-repo.t	Tue Jan 11 16:32:38 2022 +0100
@@ -1158,7 +1158,7 @@
   $ touch foo
   $ hg add --large foo
   $ hg -q commit -m initial
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1170,7 +1170,7 @@
 
   $ hg debugupgraderepo --run
   nothing to do
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1322,7 +1322,7 @@
   $ touch foo
   $ hg add foo
   $ hg -q commit -m "foo"
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1344,7 +1344,7 @@
     - changelog
     - manifest
   
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1367,7 +1367,7 @@
     - changelog
     - manifest
   
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1412,7 +1412,7 @@
   compression:        zlib   zlib    zlib (no-zstd !)
   compression:        zstd   zlib    zstd (zstd !)
   compression-level:  default default default
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1454,7 +1454,7 @@
   compression:        zlib   zlib    zlib (no-zstd !)
   compression:        zlib   zlib    zstd (zstd !)
   compression-level:  default default default
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1499,7 +1499,7 @@
   compression:        zlib   zlib    zlib (no-zstd !)
   compression:        zstd   zstd    zstd (zstd !)
   compression-level:  default default default
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1550,7 +1550,7 @@
   compression:        zlib   zlib    zlib (no-zstd !)
   compression:        zstd   zstd    zstd (zstd !)
   compression-level:  default default default
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   exp-revlogv2.2
   fncache
@@ -1598,7 +1598,7 @@
   compression:        zlib   zlib    zlib (no-zstd !)
   compression:        zstd   zstd    zstd (zstd !)
   compression-level:  default default default
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   fncache
   generaldelta
@@ -1647,7 +1647,7 @@
   compression:        zlib   zlib    zlib (no-zstd !)
   compression:        zstd   zstd    zstd (zstd !)
   compression-level:  default default default
-  $ cat .hg/requires
+  $ hg debugrequires
   dotencode
   exp-revlogv2.2
   fncache