# # # patch "project.cc" # from [6ba153708126f7a2c3e5f55c631d4ec1e43a9a3f] # to [199807cc766b6f92945b064e090c69b33ae728d4] # ============================================================ --- project.cc 6ba153708126f7a2c3e5f55c631d4ec1e43a9a3f +++ project.cc 199807cc766b6f92945b064e090c69b33ae728d4 @@ -138,10 +138,14 @@ project_t::get_branch_heads(branch_name if (!app.opts.ignore_suspend_certs) { + set visible_revs; suspended_in_branch s(app, branch_encoded); - for(std::set::iterator it = branch.second.begin(); it != branch.second.end(); it++) - if (s(*it)) - branch.second.erase(*it); + for (std::set::iterator it = branch.second.begin(); + it != branch.second.end(); it++) + if (!s(*it)) + visible_revs.insert(*it); + + swap(visible_revs, branch.second); } L(FL("found heads of branch %s (%s heads)")