comparison mercurial/commands.py @ 5113:d5126a0172ba

merge with crew-stable
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 04 Aug 2007 22:27:52 +0200
parents 47a8ea1eb2c3 3d35c8cb5eb4
children 90be02035993
comparison
equal deleted inserted replaced
5112:568bb3b4b815 5113:d5126a0172ba
3127 3127
3128 norepo = ("clone init version help debugancestor debugcomplete debugdata" 3128 norepo = ("clone init version help debugancestor debugcomplete debugdata"
3129 " debugindex debugindexdot debugdate debuginstall") 3129 " debugindex debugindexdot debugdate debuginstall")
3130 optionalrepo = ("paths serve showconfig") 3130 optionalrepo = ("paths serve showconfig")
3131 3131
3132 def dispatch(args, argv0=None): 3132 def dispatch(args):
3133 try: 3133 try:
3134 u = ui.ui(traceback='--traceback' in args) 3134 u = ui.ui(traceback='--traceback' in args)
3135 except util.Abort, inst: 3135 except util.Abort, inst:
3136 sys.stderr.write(_("abort: %s\n") % inst) 3136 sys.stderr.write(_("abort: %s\n") % inst)
3137 return -1 3137 return -1
3138 return cmdutil.runcatch(u, args, argv0=argv0) 3138 return cmdutil.runcatch(u, args)
3139 3139
3140 def run(): 3140 def run():
3141 sys.exit(dispatch(sys.argv[1:], argv0=sys.argv[0])) 3141 sys.exit(dispatch(sys.argv[1:]))