[PATCH 4 of 4 topic-experiment] topics: show more information in `hg topics`

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Jun 29 12:00:16 EDT 2017



On 06/29/2017 05:57 PM, Pulkit Goyal wrote:
> On Thu, Jun 29, 2017 at 9:17 PM, Pierre-Yves David
> <pierre-yves.david at ens-lyon.org> wrote:
>>
>>
>> On 06/29/2017 05:44 PM, Pierre-Yves David wrote:
>>>
>>> On 06/26/2017 10:28 AM, Pulkit Goyal wrote:
>>>>
>>>> # HG changeset patch
>>>> # User Pulkit Goyal <7895pulkit at gmail.com>
>>>> # Date 1497889184 -19800
>>>> #      Mon Jun 19 21:49:44 2017 +0530
>>>> # Node ID 8523d4018183cf29600c4b1633479e941f89c6c2
>>>> # Parent  4c0852883a31643a3f4fe50688f85ac90a8d63b9
>>>> topics: show more information in `hg topics`
>>>>
>>>> `hg topics` is the only way to show the list of topics currently. The
>>>> default
>>>> version shows only the topics name which is very less. This patch makes
>>>> `hg
>>>> topics` show number of changeset and branch related information also.
>>>
>>>
>>> I'm not sure if this is the right thing to show, but it seems like a good
>>> idea to show more. I've taken that one. too
>>
>>
>> actually I just checked the performance impact in a larger repository and it
>> is quite visible :-/ I've dropped it for now. You can get the updated
>> version as 89d79b2ac79b in my wip repository.
> 
> Yeah that can be the case. Maybe listing only topic names in `hg
> topics` is okay.

The branch is important to understand the topic concept.

This the only way to have an empty topic is to have it active I think is 
is fine to use the active branch there too.

Cheers

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list