mercurial/commands.py
changeset 668 d93f0b127b6a
parent 667 31a9aa890016
child 674 6513ba7d858a
equal deleted inserted replaced
667:31a9aa890016 668:d93f0b127b6a
  1197 
  1197 
  1198     return (cmd, i[0], args, options, cmdoptions)
  1198     return (cmd, i[0], args, options, cmdoptions)
  1199 
  1199 
  1200 def dispatch(args):
  1200 def dispatch(args):
  1201     signal.signal(signal.SIGTERM, catchterm)
  1201     signal.signal(signal.SIGTERM, catchterm)
  1202     signal.signal(signal.SIGHUP, catchterm)
  1202     if os.name != 'nt':
       
  1203         signal.signal(signal.SIGHUP, catchterm)
  1203 
  1204 
  1204     try:
  1205     try:
  1205         cmd, func, args, options, cmdoptions = parse(args)
  1206         cmd, func, args, options, cmdoptions = parse(args)
  1206     except ParseError, inst:
  1207     except ParseError, inst:
  1207         u = ui.ui()
  1208         u = ui.ui()