Show More
@@ -1832,7 +1832,7 b' class queue(object):' | |||
|
1832 | 1832 | if filename == '-' and not patchname: |
|
1833 | 1833 | raise util.Abort(_('need --name to import a patch from -')) |
|
1834 | 1834 | elif not patchname: |
|
1835 | patchname = normname(os.path.basename(filename)) | |
|
1835 | patchname = normname(os.path.basename(filename.rstrip('/'))) | |
|
1836 | 1836 | self.check_reserved_name(patchname) |
|
1837 | 1837 | checkfile(patchname) |
|
1838 | 1838 | try: |
@@ -208,3 +208,20 b' qimport with bad name, should abort befo' | |||
|
208 | 208 | $ hg qimport non-existant-file --name .hg |
|
209 | 209 | abort: patch name cannot begin with ".hg" |
|
210 | 210 | [255] |
|
211 | ||
|
212 | qimport http:// patch with leading slashes in url | |
|
213 | ||
|
214 | set up hgweb | |
|
215 | ||
|
216 | $ cd .. | |
|
217 | $ hg init served | |
|
218 | $ cd served | |
|
219 | $ echo a > a | |
|
220 | $ hg ci -Am patch | |
|
221 | adding a | |
|
222 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log | |
|
223 | $ cat hg.pid >> $DAEMON_PIDS | |
|
224 | ||
|
225 | $ cd ../repo | |
|
226 | $ hg qimport http://localhost:$HGPORT/raw-rev/0/// | |
|
227 | adding 0 to series file |
General Comments 0
You need to be logged in to leave comments.
Login now