docs/tutorial/testlib/push-checkheads-util.sh
changeset 3376 aad37ffd7d58
equal deleted inserted replaced
3375:1cb549cd6236 3376:aad37ffd7d58
       
     1 # setup config and various utility to test new heads checks on push
       
     2 
       
     3 . $TESTDIR/testlib/common.sh
       
     4 
       
     5 cat >> $HGRCPATH <<EOF
       
     6 [ui]
       
     7 # simpler log output
       
     8 logtemplate ="{node|short} ({phase}): {desc}\n"
       
     9 
       
    10 [phases]
       
    11 # non publishing server
       
    12 publish=False
       
    13 
       
    14 [extensions]
       
    15 # we need to strip some changeset for some test cases
       
    16 strip=
       
    17 evolve=
       
    18 EOF
       
    19 
       
    20 setuprepos() {
       
    21     echo creating basic server and client repo
       
    22     hg init server
       
    23     cd server
       
    24     mkcommit root
       
    25     hg phase --public .
       
    26     mkcommit A0
       
    27     cd ..
       
    28     hg clone server client
       
    29 }