copies-sdc: no longer suppress the upgrade output
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 19 May 2022 01:40:37 +0100
changeset 49185 ead8e5dddb3c
parent 49184 eb5954f092a9
child 49186 801ef401597e
copies-sdc: no longer suppress the upgrade output To make sure the upgrade simplification we need are taken into account, we need to see more of the output of `debugupgraderepo`. The --quiet flag simplify the output a lot and globing the `preserved` field mean this output should remains stable across (future) unrelated changes.
tests/test-copies-in-changeset.t
--- a/tests/test-copies-in-changeset.t	Thu May 19 01:37:59 2022 +0100
+++ b/tests/test-copies-in-changeset.t	Thu May 19 01:40:37 2022 +0100
@@ -435,7 +435,18 @@
   > [format]
   > exp-use-copies-side-data-changeset = no
   > EOF
-  $ hg debugupgraderepo --run --quiet --no-backup > /dev/null
+  $ hg debugupgraderepo --run --quiet --no-backup
+  upgrade will perform the following actions:
+  
+  requirements
+     preserved: * (glob)
+     removed: exp-changelog-v2, exp-copies-sidedata-changeset
+  
+  processed revlogs:
+    - all-filelogs
+    - changelog
+    - manifest
+  
   $ hg debugformat -v | egrep 'format-variant|revlog-v2|copies-sdc|changelog-v2'
   format-variant     repo config default
   copies-sdc:          no     no      no
@@ -451,7 +462,18 @@
   > [format]
   > exp-use-copies-side-data-changeset = yes
   > EOF
-  $ hg debugupgraderepo --run --quiet --no-backup > /dev/null
+  $ hg debugupgraderepo --run --quiet --no-backup
+  upgrade will perform the following actions:
+  
+  requirements
+     preserved: * (glob)
+     added: exp-changelog-v2, exp-copies-sidedata-changeset
+  
+  processed revlogs:
+    - all-filelogs
+    - changelog
+    - manifest
+  
   $ hg debugformat -v | egrep 'format-variant|revlog-v2|copies-sdc|changelog-v2'
   format-variant     repo config default
   copies-sdc:         yes    yes      no