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

mail settings
Submitter Pierre-Yves David
Date Sept. 18, 2015, 12:18 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/10532/
State Accepted
Headers show


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


diff --git a/mercurial/ b/mercurial/
--- a/mercurial/
+++ b/mercurial/
@@ -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