rewrite: do not insert "removed" refs to reverse branch lookup table

It should no longer be needed since e3254fa5c4 "rewrite: don't rewrite
the "removed" side of a branch conflict."
This commit is contained in:
Yuya Nishihara 2023-07-10 20:02:54 +09:00
parent f5f61f6bfe
commit 2bed9c9112

View file

@ -226,12 +226,6 @@ impl<'settings, 'repo> DescendantRebaser<'settings, 'repo> {
let mut branches: HashMap<_, HashSet<_>> = HashMap::new();
for (branch_name, branch_target) in mut_repo.view().branches() {
if let Some(local_target) = &branch_target.local_target {
for commit in local_target.removes() {
branches
.entry(commit.clone())
.or_default()
.insert(branch_name.clone());
}
for commit in local_target.adds() {
branches
.entry(commit.clone())