diff mercurial/httppeer.py @ 23895:cda18ded2c48

changegroup.writebundle: provide ui The next diff will add support for writing bundle2 files to writebundle, but the bundle2 generator wants access to a ui object. This changes the signature and callsites to pass one in.
author Eric Sumner <ericsumner@fb.com>
date Thu, 15 Jan 2015 14:39:41 -0800
parents cde6904f1992
children e05734cd7902
line wrap: on
line diff
--- a/mercurial/httppeer.py	Fri Jan 16 16:25:30 2015 -0800
+++ b/mercurial/httppeer.py	Thu Jan 15 14:39:41 2015 -0800
@@ -193,7 +193,7 @@
                 type = x
                 break
 
-        tempname = changegroup.writebundle(cg, None, type)
+        tempname = changegroup.writebundle(self.ui, cg, None, type)
         fp = httpconnection.httpsendfile(self.ui, tempname, "rb")
         headers = {'Content-Type': 'application/mercurial-0.1'}