diff hgext/remotefilelog/fileserverclient.py @ 40557:e2a1584e9e3f

remotefilelog: rip out lz4 support Some methods are left teased out so it's easier to build a migration extension from v1 packs to v2. I also anticipate those methods will be of use if we get around to adding configurable compression engines before we end up jettisoning packs. I think it would make sense to register one-shot `compress` and `decompress` methods on our compression engines in util.py, but indygreg mentioned that might not be straightforward. Differential Revision: https://phab.mercurial-scm.org/D4944
author Augie Fackler <augie@google.com>
date Thu, 04 Oct 2018 00:11:37 -0400
parents 6d64e2abe8d3
children 354acd0dc637
line wrap: on
line diff
--- a/hgext/remotefilelog/fileserverclient.py	Wed Oct 03 23:25:31 2018 -0400
+++ b/hgext/remotefilelog/fileserverclient.py	Thu Oct 04 00:11:37 2018 -0400
@@ -12,6 +12,7 @@
 import os
 import threading
 import time
+import zlib
 
 from mercurial.i18n import _
 from mercurial.node import bin, hex, nullid
@@ -27,7 +28,6 @@
 from . import (
     constants,
     contentstore,
-    lz4wrapper,
     metadatastore,
 )
 
@@ -444,7 +444,7 @@
                                       % (len(data), size))
 
         self.writedata.addremotefilelognode(filename, bin(node),
-                                             lz4wrapper.lz4decompress(data))
+                                             zlib.decompress(data))
 
     def connect(self):
         if self.cacheprocess: