Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
23894:f388ceae2250 | 23895:cda18ded2c48 |
---|---|
77 } | 77 } |
78 | 78 |
79 # hgweb uses this list to communicate its preferred type | 79 # hgweb uses this list to communicate its preferred type |
80 bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN'] | 80 bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN'] |
81 | 81 |
82 def writebundle(cg, filename, bundletype, vfs=None): | 82 def writebundle(ui, cg, filename, bundletype, vfs=None): |
83 """Write a bundle file and return its filename. | 83 """Write a bundle file and return its filename. |
84 | 84 |
85 Existing files will not be overwritten. | 85 Existing files will not be overwritten. |
86 If no filename is specified, a temporary file is created. | 86 If no filename is specified, a temporary file is created. |
87 bz2 compression can be turned off. | 87 bz2 compression can be turned off. |