comparison mercurial/ui.py @ 8642:2ed353a413b1

ui: fix two bugs in %% warning
author Matt Mackall <mpm@selenic.com>
date Wed, 27 May 2009 14:44:52 -0500
parents 6419bc7b3d9c
children 284fda4cd093
comparison
equal deleted inserted replaced
8641:33686ef26f04 8642:2ed353a413b1
197 return user 197 return user
198 198
199 def _path(self, loc): 199 def _path(self, loc):
200 p = self.config('paths', loc) 200 p = self.config('paths', loc)
201 if p and '%%' in p: 201 if p and '%%' in p:
202 ui.warn('(deprecated \'\%\%\' in path %s=%s from %s)\n' % 202 self.warn('(deprecated \'%%\' in path %s=%s from %s)\n' %
203 (loc, p, self.configsource('paths', loc))) 203 (loc, p, self.configsource('paths', loc)))
204 p = p.replace('%%', '%') 204 p = p.replace('%%', '%')
205 return p 205 return p
206 206
207 def expandpath(self, loc, default=None): 207 def expandpath(self, loc, default=None):