Mercurial > hg
diff mercurial/debugcommands.py @ 42041:3e47d1ec9da5
util: extract compression code in `mercurial.utils.compression`
The code seems large enough to be worth extracting. This is similar to what was
done for various module in `mercurial/utils/`.
Since None of the compression logic takes a `ui` objet, issuing deprecation
warning is tricky. Luckly the logic does not seems to have many external users.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 27 Mar 2019 16:45:14 +0100 |
parents | eec20025ada3 |
children | b63b8b7ca5fa |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Sat Mar 30 13:13:10 2019 -0700 +++ b/mercurial/debugcommands.py Wed Mar 27 16:45:14 2019 +0100 @@ -82,6 +82,7 @@ ) from .utils import ( cborutil, + compression, dateutil, procutil, stringutil, @@ -1299,7 +1300,8 @@ fm.formatlist(sorted(e.name() for e in compengines if e.available()), name='compengine', fmt='%s', sep=', ')) - wirecompengines = util.compengines.supportedwireengines(util.SERVERROLE) + wirecompengines = compression.compengines.supportedwireengines( + compression.SERVERROLE) fm.write('compenginesserver', _('checking available compression engines ' 'for wire protocol (%s)\n'), fm.formatlist([e.name() for e in wirecompengines