# HG changeset patch # User Matt Mackall # Date 2009-05-27 19:44:52 # Node ID 2ed353a413b16e6f576cdab4378ec7c88ca6707e # Parent 33686ef26f04909b5521253ffce68f6363b12390 ui: fix two bugs in %% warning diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -199,7 +199,7 @@ class ui(object): 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