Patchwork [1,of,2,evolve-ext,V2] evolve: use new api _callcompressable

login
register
mail settings
Submitter Olle Lundberg
Date April 13, 2014, 12:47 p.m.
Message ID <b5227608d9dd83306ebe.1397393229@se-c02kq0dadr55.lan>
Download mbox | patch
Permalink /patch/4312/
State Accepted
Headers show

Comments

Olle Lundberg - April 13, 2014, 12:47 p.m.
# HG changeset patch
# User Olle Lundberg <geek@nerd.sh>
# Date 1397337313 -7200
#      Sat Apr 12 23:15:13 2014 +0200
# Node ID b5227608d9dd83306ebe905775517f435a1a13fd
# Parent  484886a2712d35e86391c8d7c289b26d6575be64
evolve: use new api _callcompressable

This changeset makes evolve compatible with the change introduced in
167047ba3cfa

Patch

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -2345,12 +2345,15 @@ 
     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)
+    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
     data = StringIO()
     ui = self.ui