Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 5633:e04a65111a80
dispatch: report OOM rather than traceback
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 10 Dec 2007 10:23:45 -0600 |
parents | 253736bb0dc9 |
children | da72b4d24797 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Sun Dec 09 20:46:32 2007 +0100 +++ b/mercurial/dispatch.py Mon Dec 10 10:23:45 2007 -0600 @@ -133,6 +133,8 @@ except util.Abort, inst: ui.warn(_("abort: %s\n") % inst) + except MemoryError: + ui.warn(_("abort: out of memory\n")) except SystemExit, inst: # Commands shouldn't sys.exit directly, but give a return code. # Just in case catch this and and pass exit code to caller.