[PATCH] Support exposing hidden changesets
gregory.szorc at gmail.com
Fri Jan 3 15:03:23 CST 2014
On 1/3/14, 12:51 PM, Pierre-Yves David wrote:
> On 01/03/2014 12:43 PM, Gregory Szorc wrote:
>> # HG changeset patch
>> # User Gregory Szorc <gregory.szorc at gmail.com>
>> # Date 1388781195 28800
>> # Fri Jan 03 12:33:15 2014 -0800
>> # Node ID 62ed6cc0955d5e4ba4122821bf796092d9e19922
>> # Parent c13b99b01008dfd7694e32f803fa679ff0c070d1
>> Support exposing hidden changesets
>> hg serve will default to a filtered repo. Some clients may wish to
>> obtain information about hidden changesets. This patch adds a flag
>> to allow clients to talk with an unfiltered repo.
>> It's worth noting that currently the filtered/unfiltered decision is
>> made at server start time rather than command dispatch time. In the
>> future, we may wish to patch the command dispatch logic for the server
>> in Mercurial core so that --hidden on command flags can be honored at
> I'm curious about your use case here. Can you tell us more about it?
> Are you aware of the web.views option ? that allow to select a filtering
> level in the repo ?
My use case is I'm building a tool [that I don't want to be GPL
licensed] that indexes and extracts useful metadata from Mercurial
repos. A specific feature involves tracking changeset evolution. Thus, I
need to get access to hidden changesets.
I'm aware of web.views. However, AFAICT that's a separate code path from
`hg serve`. I'm receptive to patching commandserver.py to do filtering
at command time. This was the easier patch ;)
More information about the Mercurial-devel