Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/operations/mod.rs @ 46757:b1f2c2b336ec
rhg: `cat` command: print error messages for missing files
And exit with an error code if no file was matched.
This matches the behavior of Python-based hg.
Differential Revision: https://phab.mercurial-scm.org/D10142
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 03 Mar 2021 16:40:03 +0100 |
parents | 1dcd9c9975ed |
children | bf8837e3d7ce |
line wrap: on
line diff
--- a/rust/hg-core/src/operations/mod.rs Mon Mar 08 19:07:29 2021 +0100 +++ b/rust/hg-core/src/operations/mod.rs Wed Mar 03 16:40:03 2021 +0100 @@ -6,7 +6,7 @@ mod debugdata; mod dirstate_status; mod list_tracked_files; -pub use cat::cat; +pub use cat::{cat, CatOutput}; pub use debugdata::{debug_data, DebugDataKind}; pub use list_tracked_files::Dirstate; pub use list_tracked_files::{list_rev_tracked_files, FilesForRev};