Mercurial > evolve
changeset 897:b5227608d9dd
evolve: use new api _callcompressable
This changeset makes evolve compatible with the change introduced in
167047ba3cfa
author | Olle Lundberg <geek@nerd.sh> |
---|---|
date | Sat, 12 Apr 2014 23:15:13 +0200 |
parents | 484886a2712d |
children | 934b6f0feffd |
files | hgext/evolve.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/evolve.py Fri Apr 04 01:07:27 2014 +0200 +++ b/hgext/evolve.py Sat Apr 12 23:15:13 2014 +0200 @@ -2347,8 +2347,11 @@ 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) + if util.safehasattr(self, '_callcompressable'): + f = self._callcompressable("evoext_pullobsmarkers_0", **opts) + else: + f = self._callstream("evoext_pullobsmarkers_0", **opts) + f = self._decompress(f) length= int(f.read(20)) chunk = 4096 current = 0