diff rust/hg-core/src/lib.rs @ 41309:ee943a920606 stable

rust: error for WdirUnsupported with cpython conversion as exception This introduces WorkingDirectoryUnsupported as an enum variant of GraphError in the core and converts it to the expected `mercurial.error.WdirUnsupported`.
author Georges Racinet <georges.racinet@octobus.net>
date Wed, 23 Jan 2019 07:47:04 -0500
parents 2f54f31c41aa
children ee7b7bd432a1
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Wed Jan 23 07:39:27 2019 -0500
+++ b/rust/hg-core/src/lib.rs	Wed Jan 23 07:47:04 2019 -0500
@@ -33,4 +33,5 @@
 #[derive(Clone, Debug, PartialEq)]
 pub enum GraphError {
     ParentOutOfRange(Revision),
+    WorkingDirectoryUnsupported,
 }