hgext/remotefilelog/debugcommands.py
changeset 40557 e2a1584e9e3f
parent 40545 3a333a582d7b
child 40560 fc2766860796
--- a/hgext/remotefilelog/debugcommands.py	Wed Oct 03 23:25:31 2018 -0400
+++ b/hgext/remotefilelog/debugcommands.py	Thu Oct 04 00:11:37 2018 -0400
@@ -8,6 +8,7 @@
 
 import hashlib
 import os
+import zlib
 
 from mercurial.node import bin, hex, nullid, short
 from mercurial.i18n import _
@@ -22,7 +23,6 @@
     extutil,
     fileserverclient,
     historypack,
-    lz4wrapper,
     repack,
     shallowrepo,
     shallowutil,
@@ -171,6 +171,9 @@
                     ui.status("%s %s\n" % (key, os.path.relpath(filepath,
                                                                 path)))
 
+def _decompressblob(raw):
+    return zlib.decompress(raw)
+
 def parsefileblob(path, decompress):
     raw = None
     f = open(path, "r")
@@ -180,7 +183,7 @@
         f.close()
 
     if decompress:
-        raw = lz4wrapper.lz4decompress(raw)
+        raw = _decompressblob(raw)
 
     offset, size, flags = shallowutil.parsesizeflags(raw)
     start = offset + size