an option to print slash instead of backslash for stat
Mads Kiilerich
mads at kiilerich.com
Tue Jun 5 21:18:39 UTC 2007
Rafael Villar Burke wrote, On 06/05/2007 10:50 PM:
> Is there a reliable way to detect when hg is being run under an msys
> environment instead of a CMD one?. Detecting cygwin is easy, as
> sys.platform == "cygwin", but msys uses "win32", as it uses native apps.
>
If I have understood msys correct, then msys starts native applications
"exactly" the same was as it would have been done from cmd.exe. There
might however be a difference I don't know of.
http://public.kitware.com/pipermail/cmake/2005-November/007496.html
indicates it, but it is probably only that was as long as it is running
in msys-space.
Sorry; I don't have a msys-capable system so I can't test.
Perhaps a MERCURIALSLASH environment variable would be a good solution.
Users could set it in their msys .profile or something. (Assuming msys
environment variables are exported to windows environment variables. But
then there would probably be other variables available...)
If a user starts a cmd.exe from msys, then it would be his own fault -
but I guess it would no matter which solution we come up with.
/Mads
More information about the Mercurial
mailing list