This is an archive of the discontinued Mercurial Phabricator instance.

error: use detailed exit code 10 for command errors
ClosedPublic

Authored by martinvonz on Jan 14 2021, 3:01 PM.

Details

Summary

Command errors (unknown or ambiguous commands, or bad command
arguments or options) are handled in the dispatch module. Most other
errors are handled in the scmutil module. This patch therefore has
to duplicate a little bit of code from the scmutil module. It's just
a few lines, however, so it seems fine to me. It's a pretty common
category of errors, so it's important to have them respect
ui.detailed-exit-code.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Jan 14 2021, 3:01 PM
pulkit accepted this revision.Jan 15 2021, 1:07 PM
This revision is now accepted and ready to land.Jan 15 2021, 1:07 PM
This revision was automatically updated to reflect the committed changes.