mercurial/dispatch.py
changeset 50570 b0c938f4141a
parent 50569 fca08dd6223d
child 50571 dbd57239acb8
equal deleted inserted replaced
50569:fca08dd6223d 50570:b0c938f4141a
   518 
   518 
   519 
   519 
   520 def aliasargs(fn, givenargs):
   520 def aliasargs(fn, givenargs):
   521     args = []
   521     args = []
   522     # only care about alias 'args', ignore 'args' set by extensions.wrapfunction
   522     # only care about alias 'args', ignore 'args' set by extensions.wrapfunction
   523     if not util.safehasattr(fn, b'_origfunc'):
   523     if not util.safehasattr(fn, '_origfunc'):
   524         args = getattr(fn, 'args', args)
   524         args = getattr(fn, 'args', args)
   525     if args:
   525     if args:
   526         cmd = b' '.join(map(procutil.shellquote, args))
   526         cmd = b' '.join(map(procutil.shellquote, args))
   527 
   527 
   528         nums = []
   528         nums = []