diff --git a/rust/hg-core/src/revset.rs b/rust/hg-core/src/revset.rs --- a/rust/hg-core/src/revset.rs +++ b/rust/hg-core/src/revset.rs @@ -2,6 +2,7 @@ //! //! +use crate::errors::HgError; use crate::repo::Repo; use crate::revlog::changelog::Changelog; use crate::revlog::revlog::{Revlog, RevlogError}; @@ -28,7 +29,10 @@ // TODO: support for the rest of the language here. - Err(RevlogError::InvalidRevision) + Err( + HgError::unsupported(format!("cannot parse revset '{}'", input)) + .into(), + ) } /// Resolve the small subset of the language suitable for revlogs other than