# HG changeset patch # User Augie Fackler # Date 2015-10-13 21:16:10 # Node ID d7e6145134136067f33cf9097c3bbc6b78c1da5b # Parent 2b16ffcd3c4e6287847e317bf961c1f36dc780a0 changegroup: mark _addchangegroupfiles as module-private I'm trying to reason about the public surface area of this module now, so it's worth tagging private things as such. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -361,8 +361,8 @@ class cg1unpacker(object): repo.ui.status(_("adding file changes\n")) self.callback = None pr = prog(_('files'), efiles) - newrevs, newfiles = addchangegroupfiles(repo, self, revmap, trp, pr, - needfiles) + newrevs, newfiles = _addchangegroupfiles( + repo, self, revmap, trp, pr, needfiles) revisions += newrevs files += newfiles @@ -866,7 +866,7 @@ def changegroup(repo, basenodes, source) # to avoid a race we use changegroupsubset() (issue1320) return changegroupsubset(repo, basenodes, repo.heads(), source) -def addchangegroupfiles(repo, source, revmap, trp, pr, needfiles): +def _addchangegroupfiles(repo, source, revmap, trp, pr, needfiles): revisions = 0 files = 0 while True: