comparison tests/test-mq-qimport.t @ 12642:bb35840e965c

tests: remove the last traces of $HGTMP $HGTMP isn't needed - and if we need something like that then $TESTTMP is more appropriate.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 08 Oct 2010 22:36:11 -0500
parents 3177e3a7b14f
children dc961471efde
comparison
equal deleted inserted replaced
12641:da6693cce635 12642:bb35840e965c
83 83
84 import URL 84 import URL
85 85
86 $ echo foo >> foo 86 $ echo foo >> foo
87 $ hg add foo 87 $ hg add foo
88 $ hg diff > $HGTMP/url.diff 88 $ hg diff > url.diff
89 $ hg revert --no-backup foo 89 $ hg revert --no-backup foo
90 $ rm foo 90 $ rm foo
91 91
92 Under unix: file:///foobar/blah 92 Under unix: file:///foobar/blah
93 Under windows: file:///c:/foobar/blah 93 Under windows: file:///c:/foobar/blah
94 94
95 $ patchurl=`echo "$HGTMP"/url.diff | tr '\\\\' /` 95 $ patchurl=`pwd | tr '\\\\' /`/url.diff
96 $ expr "$patchurl" : "\/" > /dev/null || patchurl="/$patchurl" 96 $ expr "$patchurl" : "\/" > /dev/null || patchurl="/$patchurl"
97 $ hg qimport file://"$patchurl" 97 $ hg qimport file://"$patchurl"
98 adding url.diff to series file 98 adding url.diff to series file
99 $ rm url.diff
99 $ hg qun 100 $ hg qun
100 url.diff 101 url.diff
101 102
102 import patch that already exists 103 import patch that already exists
103 104