bundle2.unbundle20: add compressed() method
authorEric Sumner <ericsumner@fb.com>
Thu, 05 Feb 2015 15:56:50 -0800
changeset 24071 184a2f6f40da
parent 24070 de32e9881698
child 24072 145b823f5ce7
bundle2.unbundle20: add compressed() method Bundlerepo uses the compressed() method to determine whether it should write an uncompressed temporary file. Since we don't support compressed bundle2 files at the moment, make this method return true.
mercurial/bundle2.py
--- a/mercurial/bundle2.py	Thu Feb 05 15:52:57 2015 -0800
+++ b/mercurial/bundle2.py	Thu Feb 05 15:56:50 2015 -0800
@@ -607,6 +607,8 @@
             return self._readexact(headersize)
         return None
 
+    def compressed(self):
+        return False
 
 class bundlepart(object):
     """A bundle2 part contains application level payload