Mercurial > hg-stable
changeset 24896:9183cb6886ef
changegroup: removed unused 'source' parameter from prune()
The parameter has been unused since it was introduced in 6ea1f858efd9
(bundle: refactor changegroup prune to be its own function,
2013-05-30), and Durham says it is not used by his extension either.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Apr 2015 13:40:00 -0700 |
parents | 7e67ddd08a2e |
children | 5c35a6040352 |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Fri May 01 17:21:10 2015 -0500 +++ b/mercurial/changegroup.py Tue Apr 28 13:40:00 2015 -0700 @@ -350,7 +350,7 @@ yield self.close() # filter any nodes that claim to be part of the known set - def prune(self, revlog, missing, commonrevs, source): + def prune(self, revlog, missing, commonrevs): rr, rl = revlog.rev, revlog.linkrev return [n for n in missing if rl(rr(n)) not in commonrevs] @@ -407,7 +407,7 @@ fclnodes[n] = clnode return clnode - mfnodes = self.prune(mf, mfs, commonrevs, source) + mfnodes = self.prune(mf, mfs, commonrevs) size = 0 for chunk in self.group(mfnodes, mf, lookupmf, units=_('manifests'), reorder=reorder): @@ -460,7 +460,7 @@ def lookupfilelog(x): return linkrevnodes[x] - filenodes = self.prune(filerevlog, linkrevnodes, commonrevs, source) + filenodes = self.prune(filerevlog, linkrevnodes, commonrevs) if filenodes: progress(msgbundling, i + 1, item=fname, unit=msgfiles, total=total)