diff rust/rhg/src/commands/files.rs @ 46036:8d6164098782

rhg: allow specifying a changeset ID prefix Differential Revision: https://phab.mercurial-scm.org/D9479
author Simon Sapin <simon-commits@exyr.org>
date Mon, 30 Nov 2020 19:34:49 +0100
parents 904647f7d983
children cc6faec62cb7
line wrap: on
line diff
--- a/rust/rhg/src/commands/files.rs	Thu Dec 03 13:23:59 2020 -0800
+++ b/rust/rhg/src/commands/files.rs	Mon Nov 30 19:34:49 2020 +0100
@@ -91,6 +91,15 @@
                     .into(),
                 ))
             }
+            ListRevTrackedFilesErrorKind::AmbiguousPrefix => {
+                CommandErrorKind::Abort(Some(
+                    utf8_to_local(&format!(
+                        "abort: ambiguous revision identifier {}\n",
+                        rev
+                    ))
+                    .into(),
+                ))
+            }
             ListRevTrackedFilesErrorKind::UnsuportedRevlogVersion(version) => {
                 CommandErrorKind::Abort(Some(
                     utf8_to_local(&format!(