tests/test-dispatch
branchstable
changeset 12795 3cb0559e44d0
parent 12793 469850088fc1
parent 12794 6bf8d48bec8e
child 12796 bc69ba99e34b
equal deleted inserted replaced
12793:469850088fc1 12795:3cb0559e44d0
     1 #!/bin/sh
       
     2 # test command parsing and dispatch
       
     3 
       
     4 "$TESTDIR/hghave" no-outer-repo || exit 80
       
     5 
       
     6 dir=`pwd`
       
     7 
       
     8 hg init a
       
     9 cd a
       
    10 echo a > a
       
    11 hg ci -Ama
       
    12 
       
    13 echo "# missing arg"
       
    14 hg cat
       
    15 
       
    16 echo '% [defaults]'
       
    17 hg cat a
       
    18 cat >> $HGRCPATH <<EOF
       
    19 [defaults]
       
    20 cat = -r null
       
    21 EOF
       
    22 hg cat a
       
    23 
       
    24 echo '% no repo'
       
    25 cd $dir
       
    26 hg cat
       
    27 
       
    28 exit 0
       
    29