# HG changeset patch # User Matt Mackall # Date 1197303825 21600 # Node ID e04a65111a80a5f62ce09e0ae67cde3e8f2b3b0f # Parent fe2e8122981992ef24a27af320a7b124c53d8aac dispatch: report OOM rather than traceback diff -r fe2e81229819 -r e04a65111a80 mercurial/dispatch.py --- 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.