tests/test-convert-p4-filetypes
changeset 9042 95046688f80f
parent 8829 ce4b92f5cea7
child 10275 3a1f29b63b9f
equal deleted inserted replaced
9041:6e5e548452de 9042:95046688f80f
     4 
     4 
     5 echo "[extensions]" >> $HGRCPATH
     5 echo "[extensions]" >> $HGRCPATH
     6 echo "convert = " >> $HGRCPATH
     6 echo "convert = " >> $HGRCPATH
     7 
     7 
     8 echo % create p4 depot
     8 echo % create p4 depot
     9 export P4ROOT=$PWD/depot
     9 P4ROOT=$PWD/depot; export P4ROOT
    10 export P4AUDIT=$P4ROOT/audit
    10 P4AUDIT=$P4ROOT/audit; export P4AUDIT
    11 export P4JOURNAL=$P4ROOT/journal
    11 P4JOURNAL=$P4ROOT/journal; export P4JOURNAL
    12 export P4LOG=$P4ROOT/log
    12 P4LOG=$P4ROOT/log; export P4LOG
    13 export P4PORT=localhost:16661
    13 P4PORT=localhost:16661; export P4PORT
    14 export P4DEBUG=1
    14 P4DEBUG=1; export P4DEBUG
    15 export P4CHARSET=utf8
    15 P4CHARSET=utf8; export P4CHARSET
    16 
    16 
    17 echo % start the p4 server
    17 echo % start the p4 server
    18 [ ! -d $P4ROOT ] && mkdir $P4ROOT
    18 [ ! -d $P4ROOT ] && mkdir $P4ROOT
    19 p4d -f -J off -xi >$P4ROOT/stdout 2>$P4ROOT/stderr
    19 p4d -f -J off -xi >$P4ROOT/stdout 2>$P4ROOT/stderr
    20 p4d -f -J off >$P4ROOT/stdout 2>$P4ROOT/stderr &
    20 p4d -f -J off >$P4ROOT/stdout 2>$P4ROOT/stderr &
    24 while ! p4 ; do
    24 while ! p4 ; do
    25    sleep 1
    25    sleep 1
    26 done >/dev/null 2>/dev/null
    26 done >/dev/null 2>/dev/null
    27 
    27 
    28 echo % create a client spec
    28 echo % create a client spec
    29 export P4CLIENT=hg-p4-import
    29 P4CLIENT=hg-p4-import; export P4CLIENT
    30 DEPOTPATH=//depot/test-mercurial-import/...
    30 DEPOTPATH=//depot/test-mercurial-import/...
    31 p4 client -o | sed '/^View:/,$ d' >p4client
    31 p4 client -o | sed '/^View:/,$ d' >p4client
    32 echo View: >>p4client
    32 echo View: >>p4client
    33 echo " $DEPOTPATH //$P4CLIENT/..." >>p4client
    33 echo " $DEPOTPATH //$P4CLIENT/..." >>p4client
    34 p4 client -i <p4client
    34 p4 client -i <p4client