forked from mirrors/jj
rewrite: don't collect set of heads to add unnecessarily
This commit is contained in:
parent
c40949208b
commit
bfa43d16f9
1 changed files with 2 additions and 3 deletions
|
@ -493,11 +493,10 @@ impl<'settings, 'repo> DescendantRebaser<'settings, 'repo> {
|
||||||
let heads_to_add_expression = old_commits_expression
|
let heads_to_add_expression = old_commits_expression
|
||||||
.parents()
|
.parents()
|
||||||
.minus(&old_commits_expression);
|
.minus(&old_commits_expression);
|
||||||
let heads_to_add: HashSet<_> = heads_to_add_expression
|
let heads_to_add = heads_to_add_expression
|
||||||
.evaluate_programmatic(self.mut_repo)
|
.evaluate_programmatic(self.mut_repo)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.iter()
|
.iter();
|
||||||
.collect();
|
|
||||||
|
|
||||||
let mut view = self.mut_repo.view().store_view().clone();
|
let mut view = self.mut_repo.view().store_view().clone();
|
||||||
for commit_id in self.mut_repo.parent_mapping.keys() {
|
for commit_id in self.mut_repo.parent_mapping.keys() {
|
||||||
|
|
Loading…
Reference in a new issue