evolve: use new api _callcompressable
authorOlle Lundberg <geek@nerd.sh>
Sat, 12 Apr 2014 23:15:13 +0200
changeset 897 b5227608d9dd
parent 896 484886a2712d
child 898 934b6f0feffd
evolve: use new api _callcompressable This changeset makes evolve compatible with the change introduced in 167047ba3cfa
hgext/evolve.py
--- 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