diff mercurial/wireproto.py @ 20930:4a987060d97e

localrepo: move the getbundle method in changegroup module This is a gratuitous code move aimed at reducing the localrepo bloatness. The method had few callers, not enough to be kept in local repo. The peer API remains unchanged.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 01 Apr 2014 14:40:35 -0700
parents 24a443948627
children de60ca3a390e
line wrap: on
line diff
--- a/mercurial/wireproto.py	Thu Apr 03 12:59:12 2014 -0500
+++ b/mercurial/wireproto.py	Tue Apr 01 14:40:35 2014 -0700
@@ -602,7 +602,7 @@
             opts[k] = decodelist(v)
         elif k == 'bundlecaps':
             opts[k] = set(v.split(','))
-    cg = repo.getbundle('serve', **opts)
+    cg = changegroupmod.getbundle(repo, 'serve', **opts)
     return streamres(proto.groupchunks(cg))
 
 @wireprotocommand('heads')