revset: fix email matching tests

The comments say “Can find a unique match by either name or email”,
but these weren’t checking for an email match.
This commit is contained in:
Emily 2024-06-28 10:35:50 +01:00
parent 0802a1502b
commit 3567cba8c9

View file

@ -2395,7 +2395,7 @@ fn test_evaluate_expression_author() {
vec![commit2.id().clone()]
);
assert_eq!(
resolve_commit_ids(mut_repo, "author(\"name3\")"),
resolve_commit_ids(mut_repo, "author(\"email3\")"),
vec![commit3.id().clone()]
);
// Searches only among candidates if specified
@ -2536,7 +2536,7 @@ fn test_evaluate_expression_committer() {
vec![commit2.id().clone()]
);
assert_eq!(
resolve_commit_ids(mut_repo, "committer(\"name3\")"),
resolve_commit_ids(mut_repo, "committer(\"email3\")"),
vec![commit3.id().clone()]
);
// Searches only among candidates if specified