diff tests/test-metaedit.t @ 4896:14698b28aa57 stable

tests: turn glog shell function into an alias in test-metaedit.t Mostly because we already have an alias and because creating an alias is the usual way to customize log -G in tests.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 09 Oct 2019 20:12:54 +0700
parents 92d617c7be66
children 20380ae44d0f
line wrap: on
line diff
--- a/tests/test-metaedit.t	Wed Oct 09 20:07:42 2019 +0700
+++ b/tests/test-metaedit.t	Wed Oct 09 20:12:54 2019 +0700
@@ -1,5 +1,6 @@
   $ cat >> $HGRCPATH <<EOF
   > [alias]
+  > glog = log -GT "{rev}:{node|short}@{branch}({phase}) {desc|firstline}"
   > gluf = log -GT "{rev}: {desc|firstline} - {author|user} ({files})"
   > [extensions]
   > EOF
@@ -10,10 +11,6 @@
   >    hg ci -m "$1"
   > }
 
-  $ glog() {
-  >   hg log -G --template '{rev}:{node|short}@{branch}({phase}) {desc|firstline}\n' "$@"
-  > }
-
 
 ##########################
 importing Parren test
@@ -134,7 +131,7 @@
   2 changesets folded
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
-  $ glog -r .
+  $ hg glog -r .
   @  9:a08d35fd7d9d@default(draft) E
   |
   ~
@@ -171,7 +168,7 @@
   HG: added F
   nothing changed
 
-  $ glog -r '.^::.'
+  $ hg glog -r '.^::.'
   @  9:a08d35fd7d9d@default(draft) E
   |
   o  3:3260958f1169@default(draft) C