rust/rhg/src/commands/cat.rs
changeset 46032 8d6164098782
parent 45996 904647f7d983
child 46135 dca9cb99971c
--- a/rust/rhg/src/commands/cat.rs	Thu Dec 03 13:23:59 2020 -0800
+++ b/rust/rhg/src/commands/cat.rs	Mon Nov 30 19:34:49 2020 +0100
@@ -75,6 +75,13 @@
                 ))
                 .into(),
             )),
+            CatRevErrorKind::AmbiguousPrefix => CommandErrorKind::Abort(Some(
+                utf8_to_local(&format!(
+                    "abort: ambiguous revision identifier {}\n",
+                    rev
+                ))
+                .into(),
+            )),
             CatRevErrorKind::UnsuportedRevlogVersion(version) => {
                 CommandErrorKind::Abort(Some(
                     utf8_to_local(&format!(