--- a/rust/hg-core/src/revset.rs Mon Sep 30 17:19:35 2024 +0200
+++ b/rust/hg-core/src/revset.rs Tue Oct 01 13:20:40 2024 +0200
@@ -28,9 +28,9 @@
}
match resolve_rev_number_or_hex_prefix(input, &changelog.revlog) {
- Err(RevlogError::InvalidRevision) => {
+ Err(RevlogError::InvalidRevision(revision)) => {
// TODO: support for the rest of the language here.
- let msg = format!("cannot parse revset '{}'", input);
+ let msg = format!("cannot parse revset '{}'", revision);
Err(HgError::unsupported(msg).into())
}
result => result,
@@ -67,5 +67,5 @@
}
return revlog.rev_from_node(prefix);
}
- Err(RevlogError::InvalidRevision)
+ Err(RevlogError::InvalidRevision(input.to_string()))
}