changeset 26704:d7e614513413

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.
author Augie Fackler <augie@google.com>
date Tue, 13 Oct 2015 17:16:10 -0400
parents 2b16ffcd3c4e
children 2f5c45fe3a3b
files mercurial/changegroup.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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: