Some Windows issues

Pierre Paysant-Le Roux pplr at free.fr
Wed May 7 04:25:26 CDT 2008


Hi,

First of all, congratulations for your great software and thanks for
your hard work on it.

I observed some issues using Mercurial on Windows caused by slashs and
backslashs.

Mercurial allows to add files containing backslash in their name on
Linux. That causes problems when cloning the repository on Windows by
creating irrelevant directories : a file named "a\b" is transformed to a
file "b" in the dir "a". A file named "\" causes an error when updating
the working directory. 
It's maybe the user's role to avoid adding those silly files ... or
Mercurial's role to ensure that any repository can be used on any
platform by forbidding it.

The second problem I have is the ui.slash option. I though, by reading
"man hgrc", that on Windows, an "hg locate" (or hg --config ui.slash=0
locate) uses backslash as path separator and "hg --config ui.slash=1
locate" slash. But all those commands use slash as separator. When
adding "path:foo" they all use backslash. I would like to be able to
predict the output of "hg locate" to know how to parse it.


Pierre



More information about the Mercurial mailing list