Skip to content
Snippets Groups Projects
Commit eaad6829 authored by Kyle Lippincott's avatar Kyle Lippincott
Browse files

status: when extracting arguments from `opts`, use the same default values

Sometimes other code, such as commit when using `commands.commit.post-status`,
calls `commands.status()` without going through the normal dispatch mechanism
that would typically fill in the args to be something besides None. As a
"defense in depth" mechanism for a bug where Mercurial would crash if both
`commands.commit.post-status` and `experimental.directaccess` were enabled,
let's sanitize these values to be identical to the values they would have when
the user invoked this method from the commandline.

Differential Revision: https://phab.mercurial-scm.org/D11884
parent c51408b9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment