[issue1880] # in paths.default is treated not as expected
Maxim Vuets
bugs at mercurial.selenic.com
Tue Oct 20 20:03:31 UTC 2009
New submission from Maxim Vuets <maxim.vuets at gmail.com>:
Look at this from regular user's point of view:
tmp$ hg init origin#repo
tmp$ touch origin#repo/readme.txt
tmp$ hg -R origin#repo commit -A -m init
adding readme.txt
tmp$ hg clone origin#repo mywork
abort: repository origin not found!
tmp$ cd origin#repo
origin#repo$ hg clone . ../mywork
updating working directory
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
origin#repo$ cd ../mywork
mywork$ hg incoming
abort: repository /home/mvuets/tmp/origin not found!
mywork$ cat .hg/hgrc
[paths]
default = /home/mvuets/tmp/origin#repo
Points:
1. You cannot clone a repo just because its folder name contains "#".
2. If you nevertheless got success to clone it, you cannot work with it
anymore. in/out/push/pull fails.
3. I know that # is intended to specify a revision, but the default path
was composed automatically by hg and it was done wrongly.
4. I don't see a reason to use syntax kinda "hg -R ~/repe#revision push",
right?
5. I didn't find a way even to make some workaround, because cannot escape
"#": neither origin%23repo nor origin%%23 does not work.
----------
messages: 10813
nosy: mvuets
priority: bug
status: unread
title: # in paths.default is treated not as expected
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1880>
____________________________________________________
More information about the Mercurial-devel
mailing list