1. Stefan Rusek
  2. hg-fixutf8
  3. Issues
Issue #20 resolved

Exeption with recent hg (in crew)

Shun-ichi Goto
created an issue

Loading fixutf8 extension causes TypeError with recent hg in crew due to lack of 'label' keyword argument in ui.write() and ui.write_err(). The related changeset in crew is:

{{{ changeset: 10815:32b213b9b22c user: Brodie Rao brodie@bitheap.org date: Fri Apr 02 15:22:00 2010 -0500 summary: ui: add ui.write() output labeling API }}}

Following tiny patch is required: {{{ diff -r a0bb440b0d09 fixutf8.py --- a/fixutf8.py Sun Jul 05 21:35:14 2009 +0900 +++ b/fixutf8.py Mon Apr 05 11:50:36 2010 +0900 @@ -146,7 +146,9 @@ getbuffers = lambda ui: ui._buffers else: getbuffers = lambda ui: ui.buffers - def f(orig, ui, args): + def f(orig, ui, args, kwds): + # kwds is required to accept 'label' argument + # appeared in crew 10815:32b213b9b22c. if not getbuffers(ui): for arg in args: win32helper.rawprint(h, arg) }}}

Comments (1)

  1. Log in to comment