1.0 approaches

Brendan Cully brendan at kublai.com
Fri Feb 8 18:16:17 CST 2008


On Friday, 08 February 2008 at 16:14, Marcin Kasperski wrote:
> >> Should a more standardized sintax be used? Something like:
> >> 
> >> $ hg clone ssh://myhgserver:/var/lib/hg/myrepo
> 
> Indeed it would be more natural.
> 
> > Without the second slash, the path is relative to your homedir:
> >
> > $ hg clone ssh://myhgserver/hg/myrepo
> 
> ssh://myhgserver:hg/myrepo
> 
> could work too, and would be less likely to be confused with the
> absolute path...
> 
> > The colon is already used to specify the port.
> 
> Checking whether the first character after colon is digit, or not,
> is not that impossible...

that doesn't work when directories are numeric, or when ports are
symbolic (looked up from /etc/services, for example).


More information about the Mercurial mailing list