an option to print slash instead of backslash for stat
Alexis S. L. Carvalho
alexis at cecm.usp.br
Tue Jun 5 15:54:45 UTC 2007
(please don't top-post)
Thus spake Andrei Vermel:
> From: "Bela Babik" <teki321 at gmail.com>
> > Hi,
> >
> > originally I have modified the localpath() function in the util.py to
> > provide this functionality, but it was dirty.
> >
> > I have added a " -s --slash print slash instead of backslash in
> > paths" option to the stat command so I can use the output of it with
> > MSYS on Windows (the option displayed in the help only on the 'nt'
> > platform).
> >
> > I can post a patch if this helps anyone else too.
>
> +1
> I use the same tweak done for the same purpose.
Help me understand the problem:
- what's the problem with using backslashes on windows?
- would every windows user want to use slashes?
- many other commands (add, remove, commit, ...) may also print paths
with backslashes. Is status special, or is it just the most common
one?
- do you (almost) always want slashes, or are there still many cases
where you want backslashes? I.e. do you always specify --slash
(either on the command line or in the [defaults] section of hgrc)?
I'm not completely opposed to this (running tests with pysh would
probably benefit A LOT from something like this), but I think a "slash"
option in the [ui] section would be better - maybe always using slashes
would be even better, but I don't think all users would be happy if we
do that...
And it looks like it wouldn't be too hard to add this setting...
Alexis
More information about the Mercurial
mailing list