changeset 5929:d46cd7cfff39 stable

tests: add an alias for log -G with topo sort for convenience
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 19 May 2021 10:18:43 +0800
parents 16d36635f859
children 8d36bfe9968a
files tests/test-topic-flow-publish-bare.t
diffstat 1 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-topic-flow-publish-bare.t	Wed May 19 10:05:29 2021 +0800
+++ b/tests/test-topic-flow-publish-bare.t	Wed May 19 10:18:43 2021 +0800
@@ -10,6 +10,8 @@
   $ cat << EOF >> "$HGRCPATH"
   > [experimental]
   > auto-publish = warn
+  > [alias]
+  > tgl = log --rev 'sort(\$1, "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
   > EOF
 
 Publishing of bare branch
@@ -45,7 +47,7 @@
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files
-  $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()'
   @  2:286d02a6e2a2 c_dB0 public default
   |
   o  1:134bc3852ad2 c_dA0 public default
@@ -74,7 +76,7 @@
   adding manifests
   adding file changes
   added 2 changesets with 2 changes to 2 files (+2 heads)
-  $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()'
   @  4:9bf953aa81f6 c_dD0 public default
   |
   | o  3:9d5b8e1f08a4 c_dC0 public default
@@ -103,7 +105,7 @@
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files (+1 heads)
-  $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()'
   @  5:0db08e758601 c_aE0 public branchA
   |
   | o  4:9bf953aa81f6 c_dD0 public default
@@ -134,7 +136,7 @@
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files
-  $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()'
   @  6:0867c4471796 c_dF0 draft default foo
   |
   o  4:9bf953aa81f6 c_dD0 public default
@@ -169,7 +171,7 @@
   adding manifests
   adding file changes
   added 2 changesets with 2 changes to 2 files
-  $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()'
   @  8:858be9a8daaf c_dH0 draft default bar
   |
   o  7:0e4041d324d0 c_dG0 public default
@@ -210,7 +212,7 @@
   adding manifests
   adding file changes
   added 3 changesets with 3 changes to 3 files
-  $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()'
   @  11:b0a00ebdfd24 c_aK0 public branchA
   |
   o  5:0db08e758601 c_aE0 public branchA
@@ -253,7 +255,7 @@
   adding manifests
   adding file changes
   added 1 changesets with 0 changes to 0 files (-1 heads)
-  $ hg log --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()'
   @    12:a6f9f8c6c6cc c_dL0 public default
   |\
   | o  9:4b5570d89f0f c_dI0 public default
@@ -280,7 +282,7 @@
   |/
   o  0:ea207398892e ROOT public default
   
-  $ hg log -R ../bare-branch-server --rev 'sort(all(), "topo")' -GT '{rev}:{node|short} {desc} {phase} {branch} {topics}'
+  $ hg tgl 'all()' -R ../bare-branch-server
   o    12:a6f9f8c6c6cc c_dL0 public default
   |\
   | o  9:4b5570d89f0f c_dI0 public default