Mercurial > hg
changeset 25400:7759dc97c5c7
changegroup: rename _computeoutgoing to computeoutgoing
We're going to use this function from another module in an upcoming
patch. Drop the _ prefix to mark it as non-private.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 02 Jun 2015 19:58:06 -0700 |
parents | 724d7982b790 |
children | d29201352af7 |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Tue Jun 02 13:24:39 2015 -0500 +++ b/mercurial/changegroup.py Tue Jun 02 19:58:06 2015 -0700 @@ -615,7 +615,7 @@ bundler = cg1packer(repo, bundlecaps) return getsubset(repo, outgoing, bundler, source) -def _computeoutgoing(repo, heads, common): +def computeoutgoing(repo, heads, common): """Computes which revs are outgoing given a set of common and a set of heads. @@ -646,7 +646,7 @@ The nodes in common might not all be known locally due to the way the current discovery protocol works. Returns a raw changegroup generator. """ - outgoing = _computeoutgoing(repo, heads, common) + outgoing = computeoutgoing(repo, heads, common) return getlocalchangegroupraw(repo, source, outgoing, bundlecaps=bundlecaps, version=version) @@ -659,7 +659,7 @@ The nodes in common might not all be known locally due to the way the current discovery protocol works. """ - outgoing = _computeoutgoing(repo, heads, common) + outgoing = computeoutgoing(repo, heads, common) return getlocalchangegroup(repo, source, outgoing, bundlecaps=bundlecaps) def changegroup(repo, basenodes, source):