[PATCH] Add -0,--print0 to manifest
Matt Mackall
mpm at selenic.com
Tue Jun 5 19:54:42 UTC 2012
On Mon, 2012-06-04 at 20:28 -0700, Kevin O. Grover wrote:
> I wondered why 'hg manifest' did not support -0/--print0 for use with xargs.
>
> I decided to try to add it. While testing, I noticed that several other
> commands did have it. Now, manifest has it also.
This is a fine idea, but it's probably missed its window. The plan now
is to add generic templating support and generic output formats to all
commands.
The goal is to be able to do things like:
$ hg status --style json
$ hg bookmarks --style xml
$ hg manifest --template "{file}\0"
..with a generic facility rather than adding a bunch of options to each
command.
Some of this is already in place:
http://markmail.org/message/5rn22eludr5dcyn4
If you'd like to help in this direction, an obvious first step is to
tweak manifest to use a ui.formatter for its output.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list