an option to print slash instead of backslash for stat

Rafael Villar Burke pachi at rvburke.com
Tue Jun 5 23:16:01 UTC 2007


Giovanni Bajo wrote:
> On 6/5/2007 10:50 PM, Rafael Villar Burke wrote:
>
>>> I guess that if you adjust the default to "/" for msys/cygwin users, 
>>> you probably won't ever need the setting.
>>>   
>> Is there a reliable way to detect when hg is being run under an msys 
>> environment instead of a CMD one?. 
>
> I guess os.environ.get() should do it:
>
> rasky at MIMAS ~
> $ env | grep msys
> MACHTYPE=i686-pc-msys
> OSTYPE=msys
> TERM=msys
oops. I happen to have some common configuration for msys and cygwin... 
and TERM=cygwin even on msys... I know it's wrong, but...
Probably just checking for the env var to exist, be it TERM or SHELL 
could be enough, regardless its value.

Regards,

Rafael Villar Burke




More information about the Mercurial mailing list