Show More
@@ -33,7 +33,14 b' hg add foo' | |||||
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 | hg qimport file://$HGTMP/url.diff |
|
36 | # Under unix: file:///foobar/blah | |
|
37 | # Under windows: file:///c:/foobar/blah | |||
|
38 | patchurl=`echo $HGTMP/url.diff | tr '\\' /` | |||
|
39 | expr $patchurl : "\/" > /dev/null | |||
|
40 | if [ $? -ne 0 ]; then | |||
|
41 | patchurl='/'$patchurl | |||
|
42 | fi | |||
|
43 | hg qimport file://$patchurl | |||
37 | hg qun |
|
44 | hg qun | |
38 |
|
45 | |||
39 | echo % import patch that already exists |
|
46 | echo % import patch that already exists |
General Comments 0
You need to be logged in to leave comments.
Login now