tests/test-merge-default
changeset 2915 013921c753bd
child 5242 9cd6578750b9
equal deleted inserted replaced
2914:cd7bbb19b96e 2915:013921c753bd
       
     1 #!/bin/sh
       
     2 
       
     3 hg init
       
     4 echo a > a
       
     5 hg commit -A -ma
       
     6 
       
     7 echo a >> a
       
     8 hg commit -mb
       
     9 
       
    10 echo a >> a
       
    11 hg commit -mc
       
    12 
       
    13 hg up 1
       
    14 echo a >> a
       
    15 hg commit -md
       
    16 
       
    17 hg up 1
       
    18 echo a >> a
       
    19 hg commit -me
       
    20 
       
    21 hg up 1
       
    22 echo % should fail because not at a head
       
    23 hg merge
       
    24 
       
    25 hg up
       
    26 echo % should fail because \> 2 heads
       
    27 hg merge
       
    28 
       
    29 echo % should succeed
       
    30 hg merge 2
       
    31 hg commit -mm1
       
    32 
       
    33 echo % should succeed - 2 heads
       
    34 hg merge
       
    35 hg commit -mm2
       
    36 
       
    37 echo % should fail because 1 head
       
    38 hg merge
       
    39 
       
    40 true