changeset 8642:2ed353a413b1

ui: fix two bugs in %% warning
author Matt Mackall <mpm@selenic.com>
date Wed, 27 May 2009 14:44:52 -0500
parents 33686ef26f04
children 648af8a6aa41
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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