rust/rhg/src/error.rs
changeset 47674 ff97e793ed36
parent 47408 7954ee2d7cf7
child 49149 006688e36e12
--- a/rust/rhg/src/error.rs	Thu Jul 15 17:24:09 2021 +0200
+++ b/rust/rhg/src/error.rs	Thu Jul 08 12:18:21 2021 +0200
@@ -3,6 +3,7 @@
 use crate::NoRepoInCwdError;
 use format_bytes::format_bytes;
 use hg::config::{ConfigError, ConfigParseError, ConfigValueParseError};
+use hg::dirstate_tree::on_disk::DirstateV2ParseError;
 use hg::errors::HgError;
 use hg::exit_codes;
 use hg::repo::RepoError;
@@ -199,3 +200,9 @@
         }
     }
 }
+
+impl From<DirstateV2ParseError> for CommandError {
+    fn from(error: DirstateV2ParseError) -> Self {
+        HgError::from(error).into()
+    }
+}