Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/operations/debugdata.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 | 57dc78861196 |
children | 88e741bf2d93 |
line wrap: on
line diff
--- a/rust/hg-core/src/operations/debugdata.rs Thu Dec 03 13:23:59 2020 -0800 +++ b/rust/hg-core/src/operations/debugdata.rs Mon Nov 30 19:34:49 2020 +0100 @@ -24,6 +24,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. @@ -69,6 +71,9 @@ RevlogError::InvalidRevision => { DebugDataErrorKind::InvalidRevision } + RevlogError::AmbiguousPrefix => { + DebugDataErrorKind::AmbiguousPrefix + } RevlogError::Corrupted => DebugDataErrorKind::CorruptedRevlog, RevlogError::UnknowDataFormat(format) => { DebugDataErrorKind::UnknowRevlogDataFormat(format)