renamed files in a nice list, templates for hg log
Uwe Brauer
oub at mat.ucm.es
Wed Nov 13 07:52:26 UTC 2019
>>> "MH" == Matt Harbison <mharbison72 at gmail.com> writes:
> 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}.
Ah, thanks
hg log -r "adds('**')" --template "{rev}:\n{file_copies % '{file_copy}\n'}\n"
Does precisely what I was looking for.
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5025 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20191113/840d9f92/attachment.p7s>
More information about the Mercurial
mailing list