ui inheritance does not need to be fiddled with anymore
authorChristian Ebert <blacktrash@gmx.net>
Thu, 09 Aug 2007 09:49:38 +0200
changeset 221 2990d6aa10ff
parent 220 943e1e1ea042
child 222 f956a8301c25
ui inheritance does not need to be fiddled with anymore Backwards compatibility tests work with at least 0.9.2
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, {})