tests/test-branches
changeset 4675 6858a7477a5e
child 6067 57c1a7052982
equal deleted inserted replaced
4667:c7a81e3ae80f 4675:6858a7477a5e
       
     1 #!/bin/sh
       
     2 
       
     3 hg init a
       
     4 cd a
       
     5 echo 'root' >root
       
     6 hg add root
       
     7 hg commit -d '0 0' -u test -m "Adding root node"
       
     8 
       
     9 echo 'a' >a
       
    10 hg add a
       
    11 hg branch a
       
    12 hg commit -d '1 0' -u test -m "Adding a branch"
       
    13 
       
    14 hg update -C 0
       
    15 echo 'b' >b
       
    16 hg add b
       
    17 hg branch b
       
    18 hg commit -d '2 0' -u test -m "Adding b branch"
       
    19 
       
    20 echo 'bh1' >bh1
       
    21 hg add bh1
       
    22 hg commit -d '3 0' -u test -m "Adding b branch head 1"
       
    23 
       
    24 hg update -C 2
       
    25 echo 'bh2' >bh2
       
    26 hg add bh2
       
    27 hg commit -d '4 0' -u test -m "Adding b branch head 2"
       
    28 
       
    29 echo 'c' >c
       
    30 hg add c
       
    31 hg branch c
       
    32 hg commit -d '5 0' -u test -m "Adding c branch"
       
    33 
       
    34 hg branches
       
    35 echo '-------'
       
    36 hg branches -a