[PATCH] tests: add testcase for 208fc9ad6a48 to test-alias.t

Adrian Buehlmann adrian at cadifra.com
Sat Oct 9 09:51:52 CDT 2010


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1286615795 -7200
# Node ID be81564a6e9bb6703c44e52bd75490b39cc66a85
# Parent  d7452292f9d3bc6ce54ee067eb254c994fae2eb2
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".

diff --git a/tests/test-alias.t b/tests/test-alias.t
--- a/tests/test-alias.t
+++ b/tests/test-alias.t
@@ -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 @@ simple shell aliases
   $ hg mcount -r '"branch(default)"'
   2
 
+  $ hg tglog
+  @  1:7e7f92de180e: 'bar'
+  |
+  o  0:e63c23eaa88a: 'foo'
+  
 
 shell aliases with global options
 


More information about the Mercurial-devel mailing list