default name for clone destination [was: Re: Problem cloning from server on windows]

Thomas Arendsen Hein thomas at intevation.de
Sat Dec 9 13:22:59 UTC 2006


* Thomas Arendsen Hein <thomas at intevation.de> [20061209 13:34]:
> * Andrei Vermel <avermel at mail.ru> [20061208 18:01]:
> > C:\aaa>hg clone http://127.0.0.1:8888
> > abort: Invalid argument: 127.0.0.1:8888
> 
> Bug in Mercurial meets Windows file name conventions:
> Mercurial tries to create a local directory "127.0.0.1:8888" here,
> but Windows doesn't allow colons in names.
> 
> Just specify a non-existing target directory, e.g.:
> hg clone http://127.0.0.1:8888 foo

To not be surprised by the destination directory name (not only in
this case ... cloning from a [paths] alias can yield surprises,
too), I pushed aaeb7f5d1052 to crew which would print the
auto-generated destination.

For the 127.0.0.1:8888 problem, how should the directory be named?
Or should hg simply bail out if it doesn't know a useful name?

Thomas

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



More information about the Mercurial mailing list