[PATCH 4 of 5 more-in-stack] getsubset: use None to request uncompressed changegroup
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Fri Sep 18 00:18:45 UTC 2015
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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
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
More information about the Mercurial-devel
mailing list