[PATCH] Add -0,--print0 to manifest

Matt Mackall mpm at selenic.com
Wed Jun 6 15:32:56 CDT 2012


On Tue, 2012-06-05 at 13:48 -0700, Kevin O. Grover wrote:
> On Tue, Jun 5, 2012 at 12:54 PM, Matt Mackall <mpm at selenic.com> wrote:
>         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.
>         
>         
> 
> I'll look into the templating changes.
> 
> Sorry about the attached vice inline post.
> 
> IMO, It would be nice to have these options for completeness: until I
> looked into adding -0/--print0 to manifest, I never realized that
> locate already had them (and can could do what manifest does, plus
> more): is there a reason manifest is not an alias to locate?

Yes. It looks at the parent of the working directory by default and
gives different debug and verbose output, for starters.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list