[PATCH] hideablerevs: expand docstring to warn about possible traps

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Apr 4 18:44:10 EDT 2016



On 04/04/2016 03:34 PM, timeless wrote:
> lgtm
>
> On Mon, Apr 4, 2016 at 5:18 PM, Martijn Pieters <mj at zopatista.com> wrote:
>> On 4 April 2016 at 09:31, Pierre-Yves David
>> <pierre-yves.david at ens-lyon.org> wrote:
>>         """Revisions candidates to be hidden
>>
>>> +    This is a standalone function to help extensions to wrap it.
>>> +
>>> +    Because we use the set of immutable changeset as a fallback subset in
>>> +    branchmap (see mercurial.branchmap.subsettable), You cannot set "public"
>>> +    changesets as "hideable". Doing so would break multiple code assertions and
>>> +    lead to crashs."""
>>
>> Edited for spelling / grammar:
>>
>> """
>> Revision candidates to be hidden
>>
>> This is a standalone function to allow extensions to wrap it.
>>
>> Because we use the set of immutable changesets as a fallback subset in
>> branchmap (see mercurial.branchmap.subsettable), you cannot set "public"
>> changesets as "hideable". Doing so would break multiple code assertions and
>> lead to crashes.
>>
>> """

I've pushed that version. Thanks for the help.\

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list