ui: fix two bugs in %% warning
authorMatt Mackall <mpm@selenic.com>
Wed, 27 May 2009 14:44:52 -0500
changeset 8642 2ed353a413b1
parent 8641 33686ef26f04
child 8643 648af8a6aa41
ui: fix two bugs in %% warning
mercurial/ui.py
--- a/mercurial/ui.py	Wed May 27 14:44:51 2009 -0500
+++ b/mercurial/ui.py	Wed May 27 14:44:52 2009 -0500
@@ -199,7 +199,7 @@
     def _path(self, loc):
         p = self.config('paths', loc)
         if p and '%%' in p:
-            ui.warn('(deprecated \'\%\%\' in path %s=%s from %s)\n' %
+            self.warn('(deprecated \'%%\' in path %s=%s from %s)\n' %
                     (loc, p, self.configsource('paths', loc)))
             p = p.replace('%%', '%')
         return p