renamed files in a nice list, templates for hg log
Matt Harbison
mharbison72 at gmail.com
Wed Nov 13 03:44:50 UTC 2019
On Tue, 12 Nov 2019 08:51:02 -0500, Uwe Brauer <oub at mat.ucm.es> wrote:
>
> Hi
>
> Another template issue.
>
> hg log -r "removes('**')" --template "{rev}:\n{file_dels % '{file}\n'}\n"
>
> Works nicely and gives me a list of deleted files, but
>
> hg log -r "adds('**')" --template "{rev}:\n{file_copies % '{file}\n'}\n"
>
> Does not.
>
> What do I miss
What are your expectations? Did you mean to use {file_copies} when
logging revisions with added files?
Additionally, the {} values I see in the tests in {file_copies % 'XXX'}
are {file_copy}, {name}, and {source}, not {file}.
More information about the Mercurial
mailing list