This is an archive of the discontinued Mercurial Phabricator instance.

errors: return more detailed errors when failing to parse or apply patch
ClosedPublic

Authored by martinvonz on Nov 29 2021, 4:57 PM.

Details

Summary

This patch adds subclasses of PatchError so we can distinguish
between failure to parse a patch from failure to apply it. It updates
the callers to raise either InputError or StateError depending on
which type of error occurred.

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.