Patchwork [4,of,5,more-in-stack] getsubset: use None to request uncompressed changegroup

login
register
mail settings
Submitter Pierre-Yves David
Date Sept. 18, 2015, 12:18 a.m.
Message ID <c337ca94e665c36bdf3e.1442535525@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/10532/
State Accepted
Headers show

Comments

Pierre-Yves David - Sept. 18, 2015, 12:18 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1442016362 25200
#      Fri Sep 11 17:06:02 2015 -0700
# Node ID c337ca94e665c36bdf3eb5053d061148cbf333b2
# Parent  96ec55c3c5c23d979023ce6b96cd33023c630792
getsubset: use None to request uncompressed changegroup

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -568,11 +568,11 @@  def getsubsetraw(repo, outgoing, bundler
     _changegroupinfo(repo, csets, source)
     return bundler.generate(commonrevs, csets, fastpathlinkrev, source)
 
 def getsubset(repo, outgoing, bundler, source, fastpath=False, version='01'):
     gengroup = getsubsetraw(repo, outgoing, bundler, source, fastpath)
-    return packermap[version][1](util.chunkbuffer(gengroup), 'UN')
+    return packermap[version][1](util.chunkbuffer(gengroup), None)
 
 def changegroupsubset(repo, roots, heads, source, version='01'):
     """Compute a changegroup consisting of all the nodes that are
     descendants of any of the roots and ancestors of any of the heads.
     Return a chunkbuffer object whose read() method will return