[PATCH 1 of 2 evolve-ext] evolve: use new api _callcompressable
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sun Apr 13 04:22:19 UTC 2014
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.
mercurial.util.safehasattr is your chum here.
--
Pierre-Yves
More information about the Mercurial-devel
mailing list