Mercurial > hg > hgforest
changeset 107:95bb03707413
Fix ui.write in hg >= 1.6
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 18 Nov 2010 23:28:03 +0100 |
parents | 5de3deae264b |
children | 5f20f2b657fd |
files | forest.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/forest.py Thu Nov 18 23:01:15 2010 +0100 +++ b/forest.py Thu Nov 18 23:28:03 2010 +0100 @@ -1240,8 +1240,9 @@ def __init__(self, transform, ui): self._transform = transform self._ui = ui - def write(self, output): - self._ui.write(self._transform(output)) + def write(self, *args, **opts): + args = [self._transform(a) for a in args] + self._ui.write(*args, **opts) def __getattr__(self, attrname): return getattr(self._ui, attrname)