comparison mercurial/dispatch.py @ 36249:7906354cbc68

debug: add newlines at the end of three locations that appear to need it Differential Revision: https://phab.mercurial-scm.org/D1720
author Kyle Lippincott <spectral@google.com>
date Mon, 18 Dec 2017 17:33:43 -0800
parents 08f28f58f863
children 48fe4f56a3b4
comparison
equal deleted inserted replaced
36248:3bb1a647ab42 36249:7906354cbc68
449 return m.group() 449 return m.group()
450 elif int(m.groups()[0]) <= len(args): 450 elif int(m.groups()[0]) <= len(args):
451 return m.group() 451 return m.group()
452 else: 452 else:
453 ui.debug("No argument found for substitution " 453 ui.debug("No argument found for substitution "
454 "of %i variable in alias '%s' definition." 454 "of %i variable in alias '%s' definition.\n"
455 % (int(m.groups()[0]), self.name)) 455 % (int(m.groups()[0]), self.name))
456 return '' 456 return ''
457 cmd = re.sub(br'\$(\d+|\$)', _checkvar, self.definition[1:]) 457 cmd = re.sub(br'\$(\d+|\$)', _checkvar, self.definition[1:])
458 cmd = aliasinterpolate(self.name, args, cmd) 458 cmd = aliasinterpolate(self.name, args, cmd)
459 return ui.system(cmd, environ=env, 459 return ui.system(cmd, environ=env,