Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 1483:a4ba63e04134
Fix traceback on bad system hgrc files
author | Soh Tk-r28629 <tksoh@freescale.com> |
---|---|
date | Mon, 31 Oct 2005 09:57:54 -0800 |
parents | d791c335fb7b |
children | c3ffdb2c4091 |
comparison
equal
deleted
inserted
replaced
1482:4d38b85e60aa | 1483:a4ba63e04134 |
---|---|
2447 try: | 2447 try: |
2448 signal.signal(signal.SIGHUP, catchterm) | 2448 signal.signal(signal.SIGHUP, catchterm) |
2449 except AttributeError: | 2449 except AttributeError: |
2450 pass | 2450 pass |
2451 | 2451 |
2452 u = ui.ui() | 2452 try: |
2453 u = ui.ui() | |
2454 except util.Abort, inst: | |
2455 sys.stderr.write(_("abort: %s\n") % inst) | |
2456 sys.exit(1) | |
2457 | |
2453 external = [] | 2458 external = [] |
2454 for x in u.extensions(): | 2459 for x in u.extensions(): |
2455 def on_exception(Exception, inst): | 2460 def on_exception(Exception, inst): |
2456 u.warn(_("*** failed to import extension %s\n") % x[1]) | 2461 u.warn(_("*** failed to import extension %s\n") % x[1]) |
2457 u.warn("%s\n" % inst) | 2462 u.warn("%s\n" % inst) |