Show More
@@ -2,6 +2,7 b'' | |||||
2 | //! |
|
2 | //! | |
3 | //! <https://www.mercurial-scm.org/repo/hg/help/revsets> |
|
3 | //! <https://www.mercurial-scm.org/repo/hg/help/revsets> | |
4 |
|
4 | |||
|
5 | use crate::errors::HgError; | |||
5 | use crate::repo::Repo; |
|
6 | use crate::repo::Repo; | |
6 | use crate::revlog::changelog::Changelog; |
|
7 | use crate::revlog::changelog::Changelog; | |
7 | use crate::revlog::revlog::{Revlog, RevlogError}; |
|
8 | use crate::revlog::revlog::{Revlog, RevlogError}; | |
@@ -28,7 +29,10 b' pub fn resolve_single(' | |||||
28 |
|
29 | |||
29 | // TODO: support for the rest of the language here. |
|
30 | // TODO: support for the rest of the language here. | |
30 |
|
31 | |||
31 | Err(RevlogError::InvalidRevision) |
|
32 | Err( | |
|
33 | HgError::unsupported(format!("cannot parse revset '{}'", input)) | |||
|
34 | .into(), | |||
|
35 | ) | |||
32 | } |
|
36 | } | |
33 |
|
37 | |||
34 | /// Resolve the small subset of the language suitable for revlogs other than |
|
38 | /// Resolve the small subset of the language suitable for revlogs other than |
General Comments 0
You need to be logged in to leave comments.
Login now