[PATCH 1 of 5 V3] templates: add support for filelog webcommand in json style

Laura Médioni laura.medioni at logilab.fr
Tue Jun 21 03:38:18 EDT 2016


On 06/20/2016 05:06 PM, Anton Shestakov wrote:
> 20.06.2016, 22:44, "Yuya Nishihara" <yuya at tcha.org>:
>> On Mon, 20 Jun 2016 22:14:04 +0800, Anton Shestakov wrote:
>>>   20.06.2016, 17:25, "Laura Médioni" <laura.medioni at logilab.fr>:
>>>   > # HG changeset patch
>>>   > # User Laura Médioni <laura.medioni at logilab.fr>
>>>   > # Date 1464946102 -7200
>>>   > # Fri Jun 03 11:28:22 2016 +0200
>>>   > # Node ID 53f73556559ade2e726e9355b521dcbd95ae4dae
>>>   > # Parent 4e6e280e238fa885df9e0e600dc5915a71c8a37a
>>>   > templates: add support for filelog webcommand in json style
>>>
>>>   But then
>>>
>>>   > Modify changelistentry structure to also deliver phase and branch data and use
>>>   > either 'parents' or 'allparents' depending on what is defined in the view, in
>>>   > order to reuse it in filelog structure.
>>>
>>>   This should be a separate patch with a commit message documenting why can't
>>>   we, for example, just use "changeset" as is.
>> Using "changelistentry" makes sense to me because changelog command uses it.
>> Maybe we can unify "changelistentry" with "changeset" ?
> Oh, that's a good idea. If we can make "changelistentry" work with "allparents" and "parent" using an if(), it'll probably work for checking that "changesetbookmark" and "changesettag" exist.

Ok, I can have a try.


More information about the Mercurial-devel mailing list