comparison rust/hg-core/src/operations/list_tracked_files.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 be951ca95b08
children 88e741bf2d93
comparison
equal deleted inserted replaced
46031:c701f616d852 46032:8d6164098782
84 pub enum ListRevTrackedFilesErrorKind { 84 pub enum ListRevTrackedFilesErrorKind {
85 /// Error when reading a `revlog` file. 85 /// Error when reading a `revlog` file.
86 IoError(std::io::Error), 86 IoError(std::io::Error),
87 /// The revision has not been found. 87 /// The revision has not been found.
88 InvalidRevision, 88 InvalidRevision,
89 /// Found more than one revision whose ID match the requested prefix
90 AmbiguousPrefix,
89 /// A `revlog` file is corrupted. 91 /// A `revlog` file is corrupted.
90 CorruptedRevlog, 92 CorruptedRevlog,
91 /// The `revlog` format version is not supported. 93 /// The `revlog` format version is not supported.
92 UnsuportedRevlogVersion(u16), 94 UnsuportedRevlogVersion(u16),
93 /// The `revlog` data format is not supported. 95 /// The `revlog` data format is not supported.
116 RevlogError::UnsuportedVersion(version) => { 118 RevlogError::UnsuportedVersion(version) => {
117 ListRevTrackedFilesErrorKind::UnsuportedRevlogVersion(version) 119 ListRevTrackedFilesErrorKind::UnsuportedRevlogVersion(version)
118 } 120 }
119 RevlogError::InvalidRevision => { 121 RevlogError::InvalidRevision => {
120 ListRevTrackedFilesErrorKind::InvalidRevision 122 ListRevTrackedFilesErrorKind::InvalidRevision
123 }
124 RevlogError::AmbiguousPrefix => {
125 ListRevTrackedFilesErrorKind::AmbiguousPrefix
121 } 126 }
122 RevlogError::Corrupted => { 127 RevlogError::Corrupted => {
123 ListRevTrackedFilesErrorKind::CorruptedRevlog 128 ListRevTrackedFilesErrorKind::CorruptedRevlog
124 } 129 }
125 RevlogError::UnknowDataFormat(format) => { 130 RevlogError::UnknowDataFormat(format) => {