[PATCH 3 of 4] subrepo: add revdetails() method

Angel Ezquerra angel.ezquerra at gmail.com
Sat May 10 04:54:45 CDT 2014


On Thu, May 8, 2014 at 1:38 AM, Pierre-Yves David
<pierre-yves.david at ens-lyon.org> wrote:
>
>
> On 05/07/2014 03:54 PM, Angel Ezquerra wrote:
>>
>> # HG changeset patch
>> # User Angel Ezquerra <angel.ezquerra at gmail.com>
>> # Date 1399414642 -7200
>> #      Wed May 07 00:17:22 2014 +0200
>> # Node ID 874013facd42bd2a8bbd07634cad02448709c5ac
>> # Parent  c1035596456a23347b3cfb510bf7c62a68166b90
>> subrepo: add revdetails() method
>>
>> This method is able to show the "revision details" for a given revision.
>> Currently for mercurial subrepos it returns a string which resembles a lot
>> what
>> the default template writes to the console when doing hg log. For all
>> other
>> types of subrepos we just return the revision id as a string.
>>
>> We could not use the templater to get this info because the templater
>> writes to
>> the console (i.e. it does not return a string that we can use).
>
>
> Could we not fix the templater instead?

I'll look into that, thanks.

Angel


More information about the Mercurial-devel mailing list