[issue2556] hg out -S fails on absolute remote ssh path with relative subrepo paths

Kevin Bullock bugs at mercurial.selenic.com
Wed Dec 15 22:12:06 UTC 2010


New submission from Kevin Bullock <kbullock+mercurial at ringworld.org>:

I generally use remote URLs of the form ssh://host//absolute/repo/path (note 
second double-slash) for internal projects, and I've started using subrepos 
regularly as well. Using a default path of that form with relative subrepo 
paths ('sub = sub' in .hgsub), `hg out -S` fails on checking the subrepo 
with:

remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!

even though the repo is there.

Test script attached. Running with --debug (set DEBUG=--debug for test 
script) shows that with an absolute remote path, the subrepo path is 
computed wrongly:

running ssh localhost "hg -R Users/kbullock/Source/Explorations/hg/repo-
subrepo-ssh-abspath-clone/sub serve --stdio"

With a relative remote path (URL of the form ssh://host/relative/repo/path), 
the failure does not occur.

----------
messages: 14676
nosy: krbullock
priority: bug
status: unread
title: hg out -S fails on absolute remote ssh path with relative subrepo paths
topic: subrepo

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2556>
____________________________________________________


More information about the Mercurial-devel mailing list