Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.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 | 5827ad0b849e |
children | becfecaf9087 |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Jan 16 16:25:30 2015 -0800 +++ b/mercurial/commands.py Thu Jan 15 14:39:41 2015 -0800 @@ -1217,7 +1217,7 @@ scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded) return 1 - changegroup.writebundle(cg, fname, bundletype) + changegroup.writebundle(ui, cg, fname, bundletype) @command('cat', [('o', 'output', '', @@ -2165,7 +2165,7 @@ bundletype = btypes.get(bundletype) if bundletype not in changegroup.bundletypes: raise util.Abort(_('unknown bundle type specified with --type')) - changegroup.writebundle(bundle, bundlepath, bundletype) + changegroup.writebundle(ui, bundle, bundlepath, bundletype) @command('debugignore', [], '') def debugignore(ui, repo, *values, **opts):