Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.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 | 7817059917d0 |
children | becfecaf9087 |
line wrap: on
line diff
--- a/mercurial/changegroup.py Fri Jan 16 16:25:30 2015 -0800 +++ b/mercurial/changegroup.py Thu Jan 15 14:39:41 2015 -0800 @@ -79,7 +79,7 @@ # hgweb uses this list to communicate its preferred type bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN'] -def writebundle(cg, filename, bundletype, vfs=None): +def writebundle(ui, cg, filename, bundletype, vfs=None): """Write a bundle file and return its filename. Existing files will not be overwritten.