comparison mercurial/dispatch.py @ 13430:ed720c7cc97d stable

dispatch: fix typo in debug message
author Wagner Bruna <wbruna@softwareexpress.com.br>
date Wed, 16 Feb 2011 21:02:41 -0200
parents 30e103dacd5f
children 931a72e00efa
comparison
equal deleted inserted replaced
13429:0079fb98e8d0 13430:ed720c7cc97d
224 if m.groups()[0] == '$': 224 if m.groups()[0] == '$':
225 return m.group() 225 return m.group()
226 elif int(m.groups()[0]) <= len(args): 226 elif int(m.groups()[0]) <= len(args):
227 return m.group() 227 return m.group()
228 else: 228 else:
229 ui.debug(_("No argument found for substitution" 229 ui.debug(_("No argument found for substitution "
230 "of %i variable in alias '%s' definition.") 230 "of %i variable in alias '%s' definition.")
231 % (int(m.groups()[0]), self.name)) 231 % (int(m.groups()[0]), self.name))
232 return '' 232 return ''
233 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:]) 233 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:])
234 replace = dict((str(i + 1), arg) for i, arg in enumerate(args)) 234 replace = dict((str(i + 1), arg) for i, arg in enumerate(args))