tests/test-pull-r
changeset 5241 5517aa5aafb0
parent 5235 8ede77c2d008
equal deleted inserted replaced
5234:20770c5d41e0 5241:5517aa5aafb0
       
     1 #!/bin/sh
       
     2 
       
     3 hg init repo
       
     4 cd repo
       
     5 echo foo > foo
       
     6 hg ci -qAm 'add foo' -d '0 0'
       
     7 echo >> foo
       
     8 hg ci -m 'change foo' -d '0 0'
       
     9 hg up -qC 0
       
    10 echo bar > bar
       
    11 hg ci -qAm 'add bar' -d '0 0'
       
    12 hg log
       
    13 cd ..
       
    14 hg init copy
       
    15 cd copy
       
    16 
       
    17 echo '% pull -r 0'
       
    18 hg pull -qr 0 ../repo
       
    19 hg log
       
    20 
       
    21 echo '% pull -r 1'
       
    22 hg pull -qr 1 ../repo
       
    23 hg log
       
    24 
       
    25 # this used to abort: received changelog group is empty
       
    26 echo '% pull -r 1 again'
       
    27 hg pull -qr 1 ../repo