[PATCH 1 of 2 evolve-ext] evolve: use new api _callcompressable

Olle olle.lundberg at gmail.com
Sun Apr 13 07:46:19 CDT 2014


On Sun, Apr 13, 2014 at 6:22 AM, Pierre-Yves David <
pierre-yves.david at ens-lyon.org> wrote:

>
>
> On 04/12/2014 05:17 PM, Olle Lundberg wrote:
>
>> # HG changeset patch
>> # User Olle Lundberg <geek at nerd.sh>
>> # Date 1397337313 -7200
>> #      Sat Apr 12 23:15:13 2014 +0200
>> # Node ID cc5cea70ba8c591b62188585433f626034b12970
>> # Parent  484886a2712d35e86391c8d7c289b26d6575be64
>> evolve: use new api _callcompressable
>>
>> This changeset makes evolve compatible with the change introduced in
>> 167047ba3cfa
>>
>> diff --git a/hgext/evolve.py b/hgext/evolve.py
>> --- a/hgext/evolve.py
>> +++ b/hgext/evolve.py
>> @@ -2345,12 +2345,11 @@
>>       opts = {}
>>       if heads is not None:
>>           opts['heads'] = wireproto.encodelist(heads)
>>       if common is not None:
>>           opts['common'] = wireproto.encodelist(common)
>> -    f = self._callstream("evoext_pullobsmarkers_0", **opts)
>> -    f = self._decompress(f)
>> +    f = self._callcompressable("evoext_pullobsmarkers_0", **opts)
>>
>
> You have to make sure it is compatible with older version of mercurial too.
>
Sure thing, I was just under the impression that evolve default was more or
less for hg default and the same with the stable branch.
I have pushed the fix to my bitbucket repo and will resend.

>
> mercurial.util.safehasattr is your chum here.
>
> --
> Pierre-Yves
>



-- 
Olle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20140413/834b4232/attachment.html>


More information about the Mercurial-devel mailing list