error pulling from symbolic repo

Thomas Arendsen Hein thomas at intevation.de
Sun Aug 7 22:43:25 CDT 2005


* TK Soh <teekaysoh at yahoo.com> [20050808 02:44]:
> Received the following error when trying to pull within a repo cloned by
> symbolic name:
> 
>     % hg pull
>     pulling from bos
>     abort: repository bos/.hg not found!
>     % hg paths
>     linux = http://www.kernel.org/hg/
>     default = bos
>     bos = http://www.serpentine.com/hg
>     tah = http://hg.intevation.org/mercurial-tah/
>     hg = http://selenic.com/hg
> 
> The following patch seemed to fix it, though I'm not sure it would cause any
> unintended behavior:
> 
> -    abspath = source
>      source = ui.expandpath(source)
>      other = hg.repository(ui, source)
> +    abspath = source

This would fix your situation, but imagine:

% hg paths
default = selected
selected = bos
bos = http://www.serpentine.com/hg
tah = http://hg.intevation.org/mercurial-tah/
hg = http://selenic.com/hg

With your patch 'hg pull' would pull from subdirectory 'selected',
while 'hg pull selected' would pull from Bryan.

So you want recursive lookup of paths, but here one has to make sure
that no endless loop happens.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/


More information about the Mercurial mailing list