Message3662

Author sommerfeld
Recipients
Date 2007-07-31.21:22:12
Content
on systems available to me, sys.exit(256) yields a zero (successful) process
exit status from the python interpreter.

certain hg subcommands return a count as their exit status (notably update,
which returns the number of unresolved files), and this gets passed directly to
sys.exit().

the sys.exit() documentation I've found:  http://docs.python.org/lib/module-sys.html
says: "Most systems require it to be in the range 0-127, and produce undefined
results otherwise."

seems like the sensible thing to do would be to clip a numeric value passed to
sys.exit to 127, either in cmdutil.runcatch(), commands.run(), or somewhere else.
History
Date User Action Args
2007-07-31 21:22:16sommerfeldsetmessageid: <1185916936.69.0.898898467032.issue664@selenic.com>
2007-07-31 21:22:16sommerfeldlinkissue664 messages
2007-07-31 21:22:12sommerfeldcreate