equal
deleted
inserted
replaced
33 hg diff > $HGTMP/url.diff |
33 hg diff > $HGTMP/url.diff |
34 hg revert --no-backup foo |
34 hg revert --no-backup foo |
35 rm foo |
35 rm foo |
36 # Under unix: file:///foobar/blah |
36 # Under unix: file:///foobar/blah |
37 # Under windows: file:///c:/foobar/blah |
37 # Under windows: file:///c:/foobar/blah |
38 patchurl=`echo $HGTMP/url.diff | tr '\\' /` |
38 patchurl=`echo $HGTMP/url.diff | tr '\\\\' /` |
39 expr $patchurl : "\/" > /dev/null |
39 expr $patchurl : "\/" > /dev/null |
40 if [ $? -ne 0 ]; then |
40 if [ $? -ne 0 ]; then |
41 patchurl='/'$patchurl |
41 patchurl='/'$patchurl |
42 fi |
42 fi |
43 hg qimport file://$patchurl |
43 hg qimport file://$patchurl |