Mercurial > hg
comparison mercurial/repair.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 | b21c2e0ee8a3 |
comparison
equal
deleted
inserted
replaced
23894:f388ceae2250 | 23895:cda18ded2c48 |
---|---|
29 | 29 |
30 if compress: | 30 if compress: |
31 bundletype = "HG10BZ" | 31 bundletype = "HG10BZ" |
32 else: | 32 else: |
33 bundletype = "HG10UN" | 33 bundletype = "HG10UN" |
34 return changegroup.writebundle(cg, name, bundletype, vfs) | 34 return changegroup.writebundle(repo.ui, cg, name, bundletype, vfs) |
35 | 35 |
36 def _collectfiles(repo, striprev): | 36 def _collectfiles(repo, striprev): |
37 """find out the filelogs affected by the strip""" | 37 """find out the filelogs affected by the strip""" |
38 files = set() | 38 files = set() |
39 | 39 |