[PATCH 2 of 2] archive: add an experimental config to control the metadata file template
Yuya Nishihara
yuya at tcha.org
Tue Jul 18 08:31:17 EDT 2017
On Mon, 17 Jul 2017 23:10:22 -0400, Matt Harbison wrote:
> On Mon, 17 Jul 2017 09:56:25 -0400, Yuya Nishihara <yuya at tcha.org> wrote:
> > On Mon, 17 Jul 2017 00:57:39 -0400, Matt Harbison wrote:
> >> # HG changeset patch
> >> # User Matt Harbison <matt_harbison at yahoo.com>
> >> # Date 1500266969 14400
> >> # Mon Jul 17 00:49:29 2017 -0400
> >> # Node ID a85b7c754630cb4ac49b2cebea0ceca3d2f2eaaa
> >> # Parent 4d37def90ad5e0196dadb9bc2c9e62effad63691
> >> archive: add an experimental config to control the metadata file
> >> template
> >>
> >> Experimental because given the possible complexity, it may be worth
> >> figuring out
> >> how to load this from a file, similar to the style files for the log
> >> command,
> >> instead of trying to stuff it on the command line.
> >
> > Maybe we'll want to save it in [templates] section, and specify it in a
> > similar
> > way to -T option?
>
> Yes. I didn't realize [templates] could hold a filename like that. I'll
> follow up next cycle.
No, [templates] can't be external files. I meant it could be a template stock
for archive.
[templates]
foo = "archived {node|short}\n"
$ hg archive -T-like-option foo
More information about the Mercurial-devel
mailing list