We don't do much with Mercurial's ui, so _dispatch -> dispatch
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Dec 2009 01:13:43 +0000 (20:13 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Dec 2009 01:13:43 +0000 (20:13 -0500)
libbe/storage/vcs/hg.py

index 6baf19ca0c1792cce153efc7c898ec5a4dc3c34b..19e35858de7f6bd5b83812f585188bb715e011af 100644 (file)
@@ -67,13 +67,12 @@ class Hg(base.VCS):
         if 'cwd' not in kwargs:
             kwargs['cwd'] = self.repo
         assert len(kwargs) == 1, kwargs
-        ui = mercurial.ui.ui(interactive=False)
         fullargs = ['--cwd', kwargs['cwd']]
         fullargs.extend(args)
         stdout = sys.stdout
         tmp_stdout = StringIO.StringIO()
         sys.stdout = tmp_stdout
-        mercurial.dispatch._dispatch(ui, fullargs)
+        mercurial.dispatch.dispatch(fullargs)
         sys.stdout = stdout
         return tmp_stdout.getvalue().rstrip('\n')