changeset 6260:d1a6d83a7109

tests: use {fqbn} in push-checkheads-util.sh log template
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 31 May 2022 12:25:49 +0400
parents fc60328270ac
children a2491c578d2b
files tests/test-push-checkheads-mixed-branch-topic-G1.t tests/test-push-checkheads-mixed-branch-topic-G2.t tests/test-push-checkheads-mixed-branch-topic-G3.t tests/test-push-checkheads-multi-topics-F1.t tests/test-push-checkheads-multi-topics-F2.t tests/test-push-checkheads-multi-topics-F3.t tests/test-single-head-obsolescence-topic-B1.t tests/test-single-head-obsolescence-topic-B2.t tests/test-single-head-obsolescence-topic-B3.t tests/test-single-head-obsolescence-topic-B4.t tests/test-single-head-obsolescence-topic-B5.t tests/testlib/push-checkheads-util.sh
diffstat 12 files changed, 46 insertions(+), 47 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-push-checkheads-mixed-branch-topic-G1.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-push-checkheads-mixed-branch-topic-G1.t	Tue May 31 12:25:49 2022 +0400
@@ -67,9 +67,9 @@
   1 new obsolescence markers
   obsoleted 1 changesets
   $ hg log -G --hidden
-  @  845eeb768064 [default:Z] (draft): B1
+  @  845eeb768064 [default//default/Z] (draft): B1
   |
-  | x  35d2f30a8ba4 [default:Z] (draft): B0
+  | x  35d2f30a8ba4 [default//default/Z] (draft): B0
   | |
   | o  8aaa48160adc [default] (draft): A0
   |/
--- a/tests/test-push-checkheads-mixed-branch-topic-G2.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-push-checkheads-mixed-branch-topic-G2.t	Tue May 31 12:25:49 2022 +0400
@@ -84,7 +84,7 @@
   |
   | x  44759c6d327d [default] (draft): C0
   | |
-  | *  35d2f30a8ba4 [default:Z] (draft): B0
+  | *  35d2f30a8ba4 [default//default/Z] (draft): B0
   | |
   | x  8aaa48160adc [default] (draft): A0
   |/
--- a/tests/test-push-checkheads-mixed-branch-topic-G3.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-push-checkheads-mixed-branch-topic-G3.t	Tue May 31 12:25:49 2022 +0400
@@ -77,7 +77,7 @@
   |
   | x  44759c6d327d [default] (draft): C0
   | |
-  | o  35d2f30a8ba4 [default:Z] (draft): B0
+  | o  35d2f30a8ba4 [default//default/Z] (draft): B0
   | |
   | o  8aaa48160adc [default] (draft): A0
   |/
--- a/tests/test-push-checkheads-multi-topics-F1.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-push-checkheads-multi-topics-F1.t	Tue May 31 12:25:49 2022 +0400
@@ -71,11 +71,11 @@
   1 new obsolescence markers
   obsoleted 1 changesets
   $ hg log -G --hidden
-  @  845eeb768064 [default:Z] (draft): B1
+  @  845eeb768064 [default//default/Z] (draft): B1
   |
-  | x  e1494106e1ca [default:Z] (draft): B0
+  | x  e1494106e1ca [default//default/Z] (draft): B0
   | |
-  | o  f5cd873e2965 [default:Y] (draft): A0
+  | o  f5cd873e2965 [default//default/Y] (draft): A0
   |/
   | x  8aaa48160adc [default] (draft): A0
   |/
--- a/tests/test-push-checkheads-multi-topics-F2.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-push-checkheads-multi-topics-F2.t	Tue May 31 12:25:49 2022 +0400
@@ -82,15 +82,15 @@
   1 new obsolescence markers
   obsoleted 1 changesets
   $ hg log -G --hidden
-  @  0e26ba57d799 [default:Y] (draft): C1
+  @  0e26ba57d799 [default//default/Y] (draft): C1
   |
-  o  fb4a34222909 [default:Y] (draft): A1
+  o  fb4a34222909 [default//default/Y] (draft): A1
   |
-  | x  345721b128e8 [default:Y] (draft): C0
+  | x  345721b128e8 [default//default/Y] (draft): C0
   | |
-  | *  e1494106e1ca [default:Z] (draft): B0
+  | *  e1494106e1ca [default//default/Z] (draft): B0
   | |
-  | x  f5cd873e2965 [default:Y] (draft): A0
+  | x  f5cd873e2965 [default//default/Y] (draft): A0
   |/
   o  1e4be0697311 [default] (public): root
   
--- a/tests/test-push-checkheads-multi-topics-F3.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-push-checkheads-multi-topics-F3.t	Tue May 31 12:25:49 2022 +0400
@@ -77,13 +77,13 @@
   1 new obsolescence markers
   obsoleted 1 changesets
   $ hg log -G --hidden
-  @  57530ca5eb24 [default:Y] (draft): C1
+  @  57530ca5eb24 [default//default/Y] (draft): C1
   |
-  | x  345721b128e8 [default:Y] (draft): C0
+  | x  345721b128e8 [default//default/Y] (draft): C0
   | |
-  | o  e1494106e1ca [default:Z] (draft): B0
+  | o  e1494106e1ca [default//default/Z] (draft): B0
   | |
-  | o  f5cd873e2965 [default:Y] (draft): A0
+  | o  f5cd873e2965 [default//default/Y] (draft): A0
   |/
   o  1e4be0697311 [default] (public): root
   
--- a/tests/test-single-head-obsolescence-topic-B1.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-single-head-obsolescence-topic-B1.t	Tue May 31 12:25:49 2022 +0400
@@ -84,17 +84,17 @@
   1 new obsolescence markers
   obsoleted 1 changesets
   $ hg log -G --hidden
-  @  f4ed6717fb66 [default:topic-X] (draft): B1
+  @  f4ed6717fb66 [default//default/topic-X] (draft): B1
   |
-  o  c1340bef453e [default:topic-X] (draft): A1
+  o  c1340bef453e [default//default/topic-X] (draft): A1
   |
-  | *  618812b710f7 [default:topic-Y] (draft): D0
+  | *  618812b710f7 [default//default/topic-Y] (draft): D0
   | |
-  | *  d1ad53773db2 [default:topic-Y] (draft): C0
+  | *  d1ad53773db2 [default//default/topic-Y] (draft): C0
   | |
-  | x  1c1f62b56685 [default:topic-X] (draft): B0
+  | x  1c1f62b56685 [default//default/topic-X] (draft): B0
   | |
-  | x  5a47a98cd8e5 [default:topic-X] (draft): A0
+  | x  5a47a98cd8e5 [default//default/topic-X] (draft): A0
   |/
   o  1e4be0697311 [default] (public): root
   
--- a/tests/test-single-head-obsolescence-topic-B2.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-single-head-obsolescence-topic-B2.t	Tue May 31 12:25:49 2022 +0400
@@ -83,15 +83,15 @@
   obsoleted 1 changesets
   2 new orphan changesets
   $ hg log -G --hidden
-  @  5a4735b75167 [default:topic-X] (draft): B1
+  @  5a4735b75167 [default//default/topic-X] (draft): B1
   |
-  | *  02490b2dd1c5 [Z:topic-Y] (draft): D0
+  | *  02490b2dd1c5 [Z//default/topic-Y] (draft): D0
   | |
-  | *  447ad8382abc [Z:topic-Y] (draft): C0
+  | *  447ad8382abc [Z//default/topic-Y] (draft): C0
   | |
-  | x  1c1f62b56685 [default:topic-X] (draft): B0
+  | x  1c1f62b56685 [default//default/topic-X] (draft): B0
   | |
-  | o  5a47a98cd8e5 [default:topic-X] (draft): A0
+  | o  5a47a98cd8e5 [default//default/topic-X] (draft): A0
   |/
   o  1e4be0697311 [default] (public): root
   
--- a/tests/test-single-head-obsolescence-topic-B3.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-single-head-obsolescence-topic-B3.t	Tue May 31 12:25:49 2022 +0400
@@ -86,17 +86,17 @@
   1 new obsolescence markers
   obsoleted 1 changesets
   $ hg log -G --hidden
-  @  9f6e6381b9aa [default:topic-X] (draft): C1
+  @  9f6e6381b9aa [default//default/topic-X] (draft): C1
   |
-  o  c1340bef453e [default:topic-X] (draft): A1
+  o  c1340bef453e [default//default/topic-X] (draft): A1
   |
-  | *  850d57e10bfe [default:topic-Y] (draft): D0
+  | *  850d57e10bfe [default//default/topic-Y] (draft): D0
   | |
-  | x  fcdd583577e8 [default:topic-X] (draft): C0
+  | x  fcdd583577e8 [default//default/topic-X] (draft): C0
   | |
-  | *  030eec7a0fe2 [default:topic-Y] (draft): B0
+  | *  030eec7a0fe2 [default//default/topic-Y] (draft): B0
   | |
-  | x  5a47a98cd8e5 [default:topic-X] (draft): A0
+  | x  5a47a98cd8e5 [default//default/topic-X] (draft): A0
   |/
   o  1e4be0697311 [default] (public): root
   
--- a/tests/test-single-head-obsolescence-topic-B4.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-single-head-obsolescence-topic-B4.t	Tue May 31 12:25:49 2022 +0400
@@ -83,15 +83,15 @@
   obsoleted 1 changesets
   1 new orphan changesets
   $ hg log -G --hidden
-  @  b98a8bd4ca39 [default:topic-X] (draft): C1
+  @  b98a8bd4ca39 [default//default/topic-X] (draft): C1
   |
-  | *  850d57e10bfe [default:topic-Y] (draft): D0
+  | *  850d57e10bfe [default//default/topic-Y] (draft): D0
   | |
-  | x  fcdd583577e8 [default:topic-X] (draft): C0
+  | x  fcdd583577e8 [default//default/topic-X] (draft): C0
   | |
-  | o  030eec7a0fe2 [default:topic-Y] (draft): B0
+  | o  030eec7a0fe2 [default//default/topic-Y] (draft): B0
   |/
-  o  5a47a98cd8e5 [default:topic-X] (draft): A0
+  o  5a47a98cd8e5 [default//default/topic-X] (draft): A0
   |
   o  1e4be0697311 [default] (public): root
   
--- a/tests/test-single-head-obsolescence-topic-B5.t	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/test-single-head-obsolescence-topic-B5.t	Tue May 31 12:25:49 2022 +0400
@@ -88,13 +88,13 @@
   |
   o  f6082bc4ffef [default] (draft): A1
   |
-  | *  339fd31549ed [default:topic-Y] (draft): C0
+  | *  339fd31549ed [default//default/topic-Y] (draft): C0
   | |
-  | x    33b3d4185449 [default:topic-X] (draft): M0
+  | x    33b3d4185449 [default//default/topic-X] (draft): M0
   | |\
-  +---o  d3826ff42cf7 [default:topic-X] (draft): B0
+  +---o  d3826ff42cf7 [default//default/topic-X] (draft): B0
   | |
-  | o  5a47a98cd8e5 [default:topic-X] (draft): A0
+  | o  5a47a98cd8e5 [default//default/topic-X] (draft): A0
   |/
   o  1e4be0697311 [default] (public): root
   
--- a/tests/testlib/push-checkheads-util.sh	Sun Jun 12 21:54:53 2022 +0400
+++ b/tests/testlib/push-checkheads-util.sh	Tue May 31 12:25:49 2022 +0400
@@ -4,17 +4,16 @@
 
 cat >> $HGRCPATH <<EOF
 [ui]
-# simpler log output
-logtemplate = "{node|short} [{branch}{if(topic, ":{topic}")}] ({phase}): {desc}\n"
+logtemplate = "{node|short} [{if(topic, fqbn, branch)}] ({phase}): {desc}\n"
 
 [phases]
 # non publishing server
-publish=False
+publish = False
 
 [extensions]
 # we need to strip some changeset for some test cases
-strip=
-evolve=
+strip =
+evolve =
 EOF
 
 setuprepos() {