forked from mirrors/jj
git-push: narrow search space of -rREVISIONS
This commit is contained in:
parent
bc7a42a00e
commit
8de3932bda
1 changed files with 2 additions and 2 deletions
|
@ -1188,8 +1188,8 @@ fn find_branches_targeted_by_revisions<'a>(
|
||||||
workspace_command.evaluate_revset(current_branches_expression)?;
|
workspace_command.evaluate_revset(current_branches_expression)?;
|
||||||
current_branches_revset.iter().collect()
|
current_branches_revset.iter().collect()
|
||||||
} else {
|
} else {
|
||||||
// TODO: Narrow search space to local target commits.
|
let expression = workspace_command.parse_union_revsets(revisions)?
|
||||||
let expression = workspace_command.parse_union_revsets(revisions)?;
|
.intersection(&RevsetExpression::branches(StringPattern::everything()));
|
||||||
let revset = workspace_command.evaluate_revset(expression)?;
|
let revset = workspace_command.evaluate_revset(expression)?;
|
||||||
revset.iter().collect()
|
revset.iter().collect()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue