rust/hg-core/src/operations/debugdata.rs
changeset 46032 8d6164098782
parent 45813 57dc78861196
child 46033 88e741bf2d93
equal deleted inserted replaced
46031:c701f616d852 46032:8d6164098782
    22     FindRootError(find_root::FindRootError),
    22     FindRootError(find_root::FindRootError),
    23     /// Error when reading a `revlog` file.
    23     /// Error when reading a `revlog` file.
    24     IoError(std::io::Error),
    24     IoError(std::io::Error),
    25     /// The revision has not been found.
    25     /// The revision has not been found.
    26     InvalidRevision,
    26     InvalidRevision,
       
    27     /// Found more than one revision whose ID match the requested prefix
       
    28     AmbiguousPrefix,
    27     /// A `revlog` file is corrupted.
    29     /// A `revlog` file is corrupted.
    28     CorruptedRevlog,
    30     CorruptedRevlog,
    29     /// The `revlog` format version is not supported.
    31     /// The `revlog` format version is not supported.
    30     UnsuportedRevlogVersion(u16),
    32     UnsuportedRevlogVersion(u16),
    31     /// The `revlog` data format is not supported.
    33     /// The `revlog` data format is not supported.
    67                 DebugDataErrorKind::UnsuportedRevlogVersion(version)
    69                 DebugDataErrorKind::UnsuportedRevlogVersion(version)
    68             }
    70             }
    69             RevlogError::InvalidRevision => {
    71             RevlogError::InvalidRevision => {
    70                 DebugDataErrorKind::InvalidRevision
    72                 DebugDataErrorKind::InvalidRevision
    71             }
    73             }
       
    74             RevlogError::AmbiguousPrefix => {
       
    75                 DebugDataErrorKind::AmbiguousPrefix
       
    76             }
    72             RevlogError::Corrupted => DebugDataErrorKind::CorruptedRevlog,
    77             RevlogError::Corrupted => DebugDataErrorKind::CorruptedRevlog,
    73             RevlogError::UnknowDataFormat(format) => {
    78             RevlogError::UnknowDataFormat(format) => {
    74                 DebugDataErrorKind::UnknowRevlogDataFormat(format)
    79                 DebugDataErrorKind::UnknowRevlogDataFormat(format)
    75             }
    80             }
    76         }
    81         }