Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/error.rs @ 49174:3f86ee422095
censor: make rhg fall back to python when encountering a censored node
This is to make it support censor.policy=ignore without having
to duplicate that logic.
Also, change the censor test in such a way that it uses rhg now,
because extensions are disabled except when we call [hg censor].
Differential Revision: https://phab.mercurial-scm.org/D12607
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Thu, 05 May 2022 15:38:29 +0100 |
parents | 006688e36e12 |
children | ffd4b1f1c9cb |
line wrap: on
line diff
--- a/rust/rhg/src/error.rs Wed May 04 16:01:55 2022 -0400 +++ b/rust/rhg/src/error.rs Thu May 05 15:38:29 2022 +0100 @@ -73,6 +73,9 @@ HgError::UnsupportedFeature(message) => { CommandError::unsupported(message) } + HgError::CensoredNodeError => { + CommandError::unsupported("Encountered a censored node") + } HgError::Abort { message, detailed_exit_code,