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 @@ -20,6 +20,10 @@ let changelog = Changelog::open(repo)?; match input { + "." => { + let p1 = repo.dirstate_parents()?.p1; + return Ok(changelog.revlog.get_node_rev(p1.into())?) + } "null" => return Ok(NULL_REVISION), _ => { match resolve_rev_number_or_hex_prefix(input, &changelog.revlog) {