diff mercurial/commands.py @ 20928:91b47139d0cb

localrepo: move the getlocalbundle method in changegroup module This is a gratuitous code move aimed at reducing the localrepo bloatness. The method had 3 callers total, far too few for being kept in local repo.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 01 Apr 2014 14:33:23 -0700
parents cc62c9d6887a
children 4a987060d97e
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Apr 01 14:25:03 2014 -0700
+++ b/mercurial/commands.py	Tue Apr 01 14:33:23 2014 -0700
@@ -1142,7 +1142,7 @@
                                                 onlyheads=heads,
                                                 force=opts.get('force'),
                                                 portable=True)
-        cg = repo.getlocalbundle('bundle', outgoing, bundlecaps)
+        cg = changegroup.getlocalbundle(repo, 'bundle', outgoing, bundlecaps)
     if not cg:
         scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded)
         return 1