[issue343] asking for some info

Robin Farine robin.farine at terminus.org
Sat Sep 16 22:45:58 UTC 2006


Hi,

On Saturday September 16 2006 17:58, Stefano Spinucci wrote:

> currently, I'm using hg on a work windows (sigh!) machine, and I
> found no way to rename or move files between directories; then,
> I'd like to know if the issue 343 ("rename" doesn't work on
> Windows) will be resolved in the next mercurial release.

Currently, the commands.docopy() function handles all paths as if 
mercurial internal paths and file system paths use the same 
representation. This works fine on UNIX systems because it happens 
to be the case.

Some utility functions that manipulate paths expect paths in 
mercurial representation and return a path in the local file system 
representation, some do the opposite, and probably others use 
different combinations. Since mercurial uses strings for internal 
and file system paths, it is not possible to detect a 
representation mismatch by running the test suite on a UNIX 
platform only. When I tried to fix commands.docopy() for windows, I 
always managed to get lost while trying to remember which path was 
in which representation. 

Hence, from my point of view, so long as mercurial uses strings to 
represent both internal and file system paths, only someone able to 
run tests on windows as well as on UNIX can fix this.

Robin



More information about the Mercurial mailing list