--- a/hgext/remotefilelog/remotefilelogserver.py Wed Oct 03 23:25:31 2018 -0400
+++ b/hgext/remotefilelog/remotefilelogserver.py Thu Oct 04 00:11:37 2018 -0400
@@ -10,6 +10,7 @@
import os
import stat
import time
+import zlib
from mercurial.i18n import _
from mercurial.node import bin, hex, nullid
@@ -28,7 +29,6 @@
wireprotov1server,
)
from . import (
- lz4wrapper,
shallowrepo,
shallowutil,
)
@@ -230,7 +230,8 @@
filectx = repo.filectx(path, fileid=node)
text = createfileblob(filectx)
- text = lz4wrapper.lzcompresshc(text)
+ # TODO configurable compression engines
+ text = zlib.compress(text)
# everything should be user & group read/writable
oldumask = os.umask(0o002)