mercurial/httppeer.py
changeset 28666 ae53ecc47414
parent 28530 fd2acc5046f6
child 28883 032c4c2f802a
--- a/mercurial/httppeer.py	Mon Mar 28 17:16:00 2016 -0500
+++ b/mercurial/httppeer.py	Mon Mar 28 14:41:29 2016 -0700
@@ -20,7 +20,7 @@
 from .i18n import _
 from .node import nullid
 from . import (
-    changegroup,
+    bundle2,
     error,
     httpconnection,
     statichttprepo,
@@ -222,11 +222,11 @@
             # bundles.
             types = [""]
         for x in types:
-            if x in changegroup.bundletypes:
+            if x in bundle2.bundletypes:
                 type = x
                 break
 
-        tempname = changegroup.writebundle(self.ui, cg, None, type)
+        tempname = bundle2.writebundle(self.ui, cg, None, type)
         fp = httpconnection.httpsendfile(self.ui, tempname, "rb")
         headers = {'Content-Type': 'application/mercurial-0.1'}