Mercurial > evolve
changeset 1836:9e87ac06be90
compat: just use '_callcompressable'
That API is available in all version we supports.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 28 Feb 2017 14:31:28 +0100 |
parents | 93d4661a6ee7 |
children | c8b07459c9bb |
files | hgext3rd/evolve/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py Tue Feb 28 14:31:18 2017 +0100 +++ b/hgext3rd/evolve/__init__.py Tue Feb 28 14:31:28 2017 +0100 @@ -3758,11 +3758,7 @@ opts['heads'] = wireproto.encodelist(heads) if common is not None: opts['common'] = wireproto.encodelist(common) - if util.safehasattr(self, '_callcompressable'): - f = self._callcompressable("evoext_pullobsmarkers_0", **opts) - else: - f = self._callstream("evoext_pullobsmarkers_0", **opts) - f = self._decompress(f) + f = self._callcompressable("evoext_pullobsmarkers_0", **opts) length = int(f.read(20)) chunk = 4096 current = 0