comparison 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
comparison
equal deleted inserted replaced
23894:f388ceae2250 23895:cda18ded2c48
191 for x in types: 191 for x in types:
192 if x in changegroup.bundletypes: 192 if x in changegroup.bundletypes:
193 type = x 193 type = x
194 break 194 break
195 195
196 tempname = changegroup.writebundle(cg, None, type) 196 tempname = changegroup.writebundle(self.ui, cg, None, type)
197 fp = httpconnection.httpsendfile(self.ui, tempname, "rb") 197 fp = httpconnection.httpsendfile(self.ui, tempname, "rb")
198 headers = {'Content-Type': 'application/mercurial-0.1'} 198 headers = {'Content-Type': 'application/mercurial-0.1'}
199 199
200 try: 200 try:
201 try: 201 try: