D4934: narrow: don't compress the bundle2 when sending 'error:abort'
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Oct 11 11:42:00 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb9a07a58b44d: narrow: don't compress the bundle2 when sending 'error:abort' (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4934?vs=11794&id=11801
REVISION DETAIL
https://phab.mercurial-scm.org/D4934
AFFECTED FILES
hgext/narrow/narrowwirepeer.py
CHANGE DETAILS
diff --git a/hgext/narrow/narrowwirepeer.py b/hgext/narrow/narrowwirepeer.py
--- a/hgext/narrow/narrowwirepeer.py
+++ b/hgext/narrow/narrowwirepeer.py
@@ -57,6 +57,7 @@
ellipses: whether to send ellipses data or not
"""
+ preferuncompressed = False
try:
oldincludes = wireprototypes.decodelist(oldincludes)
newincludes = wireprototypes.decodelist(newincludes)
@@ -92,9 +93,11 @@
if exc.hint is not None:
advargs.append(('hint', exc.hint))
bundler.addpart(bundle2.bundlepart('error:abort', manargs, advargs))
+ preferuncompressed = True
chunks = bundler.getchunks()
- return wireprototypes.streamres(gen=chunks)
+ return wireprototypes.streamres(gen=chunks,
+ prefer_uncompressed=preferuncompressed)
def peernarrowwiden(remote, **kwargs):
for ch in ('oldincludes', 'newincludes', 'oldexcludes', 'newexcludes',
To: pulkit, durin42, martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list