tests/test-alias.t
changeset 12656 929b424e1146
parent 12536 208fc9ad6a48
child 12748 d10369fefd01
equal deleted inserted replaced
12655:5192b24f309c 12656:929b424e1146
     1   $ cat >> $HGRCPATH <<EOF
     1   $ cat >> $HGRCPATH <<EOF
       
     2   > [extensions]
       
     3   > graphlog=
       
     4   > 
     2   > [alias]
     5   > [alias]
     3   > myinit = init
     6   > myinit = init
     4   > cleanstatus = status -c
     7   > cleanstatus = status -c
     5   > unknown = bargle
     8   > unknown = bargle
     6   > ambiguous = s
     9   > ambiguous = s
    23   > echo2 = !echo '\$2'
    26   > echo2 = !echo '\$2'
    24   > echo13 = !echo '\$1' '\$3'
    27   > echo13 = !echo '\$1' '\$3'
    25   > count = !hg log -r '\$@' --template='.' | wc -c | sed -e 's/ //g'
    28   > count = !hg log -r '\$@' --template='.' | wc -c | sed -e 's/ //g'
    26   > mcount = !hg log \$@ --template='.' | wc -c | sed -e 's/ //g'
    29   > mcount = !hg log \$@ --template='.' | wc -c | sed -e 's/ //g'
    27   > rt = root
    30   > rt = root
       
    31   > tglog = glog --template "{rev}:{node|short}: '{desc}' {branches}\n"
    28   > 
    32   > 
    29   > [defaults]
    33   > [defaults]
    30   > mylog = -q
    34   > mylog = -q
    31   > lognull = -q
    35   > lognull = -q
    32   > log = -v
    36   > log = -v
   182   $ hg count 'branch(default)'
   186   $ hg count 'branch(default)'
   183   2
   187   2
   184   $ hg mcount -r '"branch(default)"'
   188   $ hg mcount -r '"branch(default)"'
   185   2
   189   2
   186 
   190 
       
   191   $ hg tglog
       
   192   @  1:7e7f92de180e: 'bar'
       
   193   |
       
   194   o  0:e63c23eaa88a: 'foo'
       
   195   
   187 
   196 
   188 shell aliases with global options
   197 shell aliases with global options
   189 
   198 
   190   $ hg init sub
   199   $ hg init sub
   191   $ cd sub
   200   $ cd sub