# HG changeset patch # User Christian Ebert # Date 1186645778 -7200 # Node ID 2990d6aa10fff469cde9508611f70152cd944ed9 # Parent 943e1e1ea04260dc8f0b8af8a8db5ccb0a010441 ui inheritance does not need to be fiddled with anymore Backwards compatibility tests work with at least 0.9.2 diff -r 943e1e1ea042 -r 2990d6aa10ff hgkw/keyword.py --- a/hgkw/keyword.py Mon Jul 30 13:42:02 2007 +0100 +++ b/hgkw/keyword.py Thu Aug 09 09:49:38 2007 +0200 @@ -331,7 +331,6 @@ tmpdir = tempfile.mkdtemp('', 'kwdemo.') ui.note(_('creating temporary repo at %s\n') % tmpdir) repo = localrepo.localrepository(ui, path=tmpdir, create=True) - repo.ui = ui # backwards compatibility ui.setconfig('keyword', fn, '') if args or opts['rcfile']: kwstatus = 'custom' @@ -398,9 +397,6 @@ 'grep', 'identify', 'incoming', 'init', 'outgoing', 'push', 'remove', 'rename', 'rollback'] - # for backwards compatibility - ui = repo.ui - def _getcmd(): # cmdutil.parse(ui, sys.argv[1:])[0] doesn't work for "hg diff -r" args = fancyopts.fancyopts(sys.argv[1:], commands.globalopts, {})