changegroup: mark _addchangegroupfiles as module-private
authorAugie Fackler <augie@google.com>
Tue, 13 Oct 2015 17:16:10 -0400
changeset 26704 d7e614513413
parent 26703 2b16ffcd3c4e
child 26705 2f5c45fe3a3b
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.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Tue Oct 13 17:14:37 2015 -0400
+++ b/mercurial/changegroup.py	Tue Oct 13 17:16:10 2015 -0400
@@ -361,8 +361,8 @@
             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 @@
     # 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: