--- a/mercurial/ui.py Mon Feb 20 16:42:47 2012 -0600
+++ b/mercurial/ui.py Mon Feb 20 16:42:48 2012 -0600
@@ -7,7 +7,7 @@
from i18n import _
import errno, getpass, os, socket, sys, tempfile, traceback
-import config, scmutil, util, error
+import config, scmutil, util, error, formatter
class ui(object):
def __init__(self, src=None):
@@ -46,6 +46,9 @@
def copy(self):
return self.__class__(self)
+ def formatter(self, topic, opts):
+ return formatter.formatter(self, topic, opts)
+
def _trusted(self, fp, f):
st = util.fstat(fp)
if util.isowner(st):