It's more flexible to have the error codes defined on the error types
themselves. That way extensions can easily set their own exit code. It
also means that we can reduce a bit of duplication betwen
scmutil.callcatch() and chgserver.chgcmdserver.validate().
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG33c0c25d0b0f: errors: let each Abort subclass define its error code
Diff Detail
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.