# HG changeset patch # User Adrian Buehlmann # Date 1286615795 -7200 # Node ID 929b424e114663d5a225c493976d832e99039f12 # Parent 5192b24f309ce6e7a7442103234a41b2779534f4 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 -r 5192b24f309c -r 929b424e1146 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 < [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