tests: add testcase for 208fc9ad6a48 to test-alias.t
authorAdrian Buehlmann <adrian@cadifra.com>
Sat, 09 Oct 2010 11:16:35 +0200
changeset 12656 929b424e1146
parent 12655 5192b24f309c
child 12657 7de9033167f3
tests: add testcase for 208fc9ad6a48 to test-alias.t The testsuite lacks a testcase for the bug introduced in 208fc9ad6a48. This patch amends 301d7626e0ff (which fixed 208fc9ad6a48) by adding a testcase for that bug. With 208fc9ad6a48, test-alias.t (as modified by this patch) fails with "hg tglog: invalid arguments".
tests/test-alias.t
--- a/tests/test-alias.t	Sat Oct 09 10:36:50 2010 -0500
+++ b/tests/test-alias.t	Sat Oct 09 11:16:35 2010 +0200
@@ -1,4 +1,7 @@
   $ cat >> $HGRCPATH <<EOF
+  > [extensions]
+  > graphlog=
+  > 
   > [alias]
   > myinit = init
   > cleanstatus = status -c
@@ -25,6 +28,7 @@
   > count = !hg log -r '\$@' --template='.' | wc -c | sed -e 's/ //g'
   > mcount = !hg log \$@ --template='.' | wc -c | sed -e 's/ //g'
   > rt = root
+  > tglog = glog --template "{rev}:{node|short}: '{desc}' {branches}\n"
   > 
   > [defaults]
   > mylog = -q
@@ -184,6 +188,11 @@
   $ hg mcount -r '"branch(default)"'
   2
 
+  $ hg tglog
+  @  1:7e7f92de180e: 'bar'
+  |
+  o  0:e63c23eaa88a: 'foo'
+  
 
 shell aliases with global options