[PATCH] hg status -0 implies -n
Jeremy Fitzhardinge
jeremy at goop.org
Fri Jun 23 19:46:58 CDT 2006
Matt Mackall wrote:
> We may, in the future, allow newlines in filenames. At which point -0
> without -n will be useful for apps parsing hg status.
>
> (We don't currently allow it because the changeset format doesn't
> support it. But that could be dealt with via escaping or other
> mechanisms.)
>
That seems like a bit of a reach. Right now, -0 is primarily useful for
piping into xargs -0; forcing the user to add a separate flag to make
the most common usage work seems wrong.
If people want to start parsing the output of commands and \n becomes a
valid filename character, then there could be a separate option for 'hg
status' to allow that, but it strikes me that there are probably better
ways to solve the problem in that case.
J
More information about the Mercurial
mailing list