This is an archive of the discontinued Mercurial Phabricator instance.

dispatch: move sys.exit() to caller (API)
AcceptedPublic

Authored by indygreg on May 6 2018, 12:11 AM.

Details

Reviewers
lothiraldan
durin42
Group Reviewers
hg-reviewers
Summary

Moving sys.exit() to the caller will make it easier to implement
exit handling in Rust hg by eliminating the need to handle
SystemExit in Rust.

.. api::

dispatch.run() now returns an integer exit code instead of calling
sys.exit(). Callers of dispatch.run() must now exit.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.May 6 2018, 12:11 AM
lothiraldan accepted this revision.May 7 2018, 3:11 AM
indygreg updated this revision to Diff 8655.May 12 2018, 12:48 AM
durin42 accepted this revision.May 31 2018, 3:07 PM
This revision is now accepted and ready to land.May 31 2018, 3:07 PM