Mercurial > hg-stable
view tests/test-install.t @ 14396:170747a3e139
mq: strip all leading slashes from url when importing
When trying to import a url that ends with a slash
os.path.basename() would return an empty string. So
when seeing a leading slash, remove it and infer the
patch name from the remaining url.
e.g. `hg qimport http://paste.pocoo.org/raw/xxx/`
deduced '.' to be the patch name. Now we'll deduce 'xxx'.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Fri, 20 May 2011 21:20:24 +0300 |
parents | 85d74f6babf6 |
children | 797bf1dc1ff8 |
line wrap: on
line source
hg debuginstall $ hg debuginstall Checking encoding (ascii)... Checking installed modules (*/mercurial)... (glob) Checking templates... Checking commit editor... Checking username... No problems detected hg debuginstall with no username $ HGUSER= hg debuginstall Checking encoding (ascii)... Checking installed modules (*/mercurial)... (glob) Checking templates... Checking commit editor... Checking username... no username supplied (see "hg help config") (specify a username in your configuration file) 1 problems detected, please check your install! [1]