##// END OF EJS Templates
dispatch: debug message for missing arguments in shell alias...
Roman Sokolov -
r13393:d38d500d default
parent child Browse files
Show More
@@ -226,6 +226,9 b' class cmdalias(object):'
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"
230 "of %i variable in alias '%s' definition.")
231 % (int(m.groups()[0]), self.name))
229 return ''
232 return ''
230 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:])
233 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:])
231 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))
General Comments 0
You need to be logged in to leave comments. Login now