diff rust/hg-core/src/operations/cat.rs @ 46032: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 7252f5237352
children 88e741bf2d93
line wrap: on
line diff
--- a/rust/hg-core/src/operations/cat.rs	Thu Dec 03 13:23:59 2020 -0800
+++ b/rust/hg-core/src/operations/cat.rs	Mon Nov 30 19:34:49 2020 +0100
@@ -26,6 +26,8 @@
     IoError(std::io::Error),
     /// The revision has not been found.
     InvalidRevision,
+    /// Found more than one revision whose ID match the requested prefix
+    AmbiguousPrefix,
     /// A `revlog` file is corrupted.
     CorruptedRevlog,
     /// The `revlog` format version is not supported.
@@ -55,6 +57,7 @@
                 CatRevErrorKind::UnsuportedRevlogVersion(version)
             }
             RevlogError::InvalidRevision => CatRevErrorKind::InvalidRevision,
+            RevlogError::AmbiguousPrefix => CatRevErrorKind::AmbiguousPrefix,
             RevlogError::Corrupted => CatRevErrorKind::CorruptedRevlog,
             RevlogError::UnknowDataFormat(format) => {
                 CatRevErrorKind::UnknowRevlogDataFormat(format)