diff mercurial/bundlerepo.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 37a92908a382
children b95a5bb58653
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Fri Jan 16 16:25:30 2015 -0800
+++ b/mercurial/bundlerepo.py	Thu Jan 15 14:39:41 2015 -0800
@@ -410,7 +410,7 @@
         else:
             cg = other.changegroupsubset(incoming, rheads, 'incoming')
         bundletype = localrepo and "HG10BZ" or "HG10UN"
-        fname = bundle = changegroup.writebundle(cg, bundlename, bundletype)
+        fname = bundle = changegroup.writebundle(ui, cg, bundlename, bundletype)
         # keep written bundle?
         if bundlename:
             bundle = None