Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/error.rs @ 45542:33ded2d3f4fc
rhg: add a limited `rhg cat -r` subcommand
It only supports revision specification (rev or full hash) and the list of files
to cat.
Differential Revision: https://phab.mercurial-scm.org/D9052
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Tue, 15 Sep 2020 16:51:11 +0200 |
parents | fbc373b7cbc3 |
children | ead435aa5294 |
line wrap: on
line diff
--- a/rust/rhg/src/error.rs Fri Sep 11 17:32:53 2020 +0200 +++ b/rust/rhg/src/error.rs Tue Sep 15 16:51:11 2020 +0200 @@ -18,6 +18,8 @@ StderrError, /// The command aborted Abort(Option<Vec<u8>>), + /// A mercurial capability as not been implemented. + Unimplemented, } impl CommandErrorKind { @@ -28,6 +30,7 @@ CommandErrorKind::StdoutError => exitcode::ABORT, CommandErrorKind::StderrError => exitcode::ABORT, CommandErrorKind::Abort(_) => exitcode::ABORT, + CommandErrorKind::Unimplemented => exitcode::UNIMPLEMENTED_COMMAND, } }