[PATCH 8 of 8] changegroup: remove getlocalchangegroupraw() (API)
Gregory Szorc
gregory.szorc at gmail.com
Fri Aug 5 03:17:04 UTC 2016
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1470364883 25200
# Thu Aug 04 19:41:23 2016 -0700
# Node ID 31a088bce7192a388ba402dbd0a35183293fffc8
# Parent 4c9b71d4c61cf99cd75469bff7d58bf0b2241bdd
changegroup: remove getlocalchangegroupraw() (API)
The previous patch removed the only in-tree consumer of this one-line
function. Use getchangegroupchunks() instead.
diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -975,25 +975,16 @@ def changegroupsubset(repo, roots, heads
Another wrinkle is doing the reverse, figuring out which changeset in
the changegroup a particular filenode or manifestnode belongs to.
"""
outgoing = discovery.outgoingbetween(repo, roots, heads)
bundler = getbundler(version, repo)
return getsubset(repo, outgoing, bundler, source)
-def getlocalchangegroupraw(repo, source, outgoing, bundlecaps=None,
- version='01'):
- """Like getbundle, but taking a discovery.outgoing as an argument.
-
- This is only implemented for local repos and reuses potentially
- precomputed sets in outgoing. Returns a raw changegroup generator."""
- return getchangegroupchunks(repo, outgoing, version, source,
- bundlecaps=bundlecaps)[1]
-
def getlocalchangegroup(repo, source, outgoing, bundlecaps=None,
version='01'):
"""Like getbundle, but taking a discovery.outgoing as an argument.
This is only implemented for local repos and reuses potentially
precomputed sets in outgoing."""
if not outgoing.missing:
return None
More information about the Mercurial-devel
mailing list