tests/test-mq-qgoto
changeset 12325 5f6231861e09
parent 12323 f00953d9533c
parent 12324 b701610f6c56
child 12326 9d932e8e9546
equal deleted inserted replaced
12323:f00953d9533c 12325:5f6231861e09
     1 #!/bin/sh
       
     2 
       
     3 echo "[extensions]" >> $HGRCPATH
       
     4 echo "mq=" >> $HGRCPATH
       
     5 
       
     6 hg init a
       
     7 cd a
       
     8 echo a > a
       
     9 hg ci -Ama
       
    10 
       
    11 hg qnew a.patch
       
    12 echo a >> a
       
    13 hg qrefresh
       
    14 
       
    15 hg qnew b.patch
       
    16 echo b > b
       
    17 hg add b
       
    18 hg qrefresh
       
    19 
       
    20 hg qnew c.patch
       
    21 echo c > c
       
    22 hg add c
       
    23 hg qrefresh
       
    24 
       
    25 hg qgoto a.patch
       
    26 hg qgoto c.patch
       
    27 hg qgoto b.patch
       
    28 
       
    29 echo
       
    30 echo % Using index
       
    31 hg qgoto 0
       
    32 hg qgoto 2
       
    33 
       
    34 echo
       
    35 echo % No warnings when using index
       
    36 hg qnew bug314159
       
    37 echo d >> c
       
    38 hg qrefresh
       
    39 hg qnew bug141421
       
    40 echo e >> c
       
    41 hg qrefresh
       
    42 hg qgoto 1
       
    43 hg qgoto 3
       
    44 
       
    45 echo
       
    46 echo % Detect ambiguous non-index
       
    47 hg qgoto 14
       
    48 
       
    49 exit 0