# # # patch "project.cc" # from [199807cc766b6f92945b064e090c69b33ae728d4] # to [b3e058f60be065000801b36916c50876b6287133] # ============================================================ --- project.cc 199807cc766b6f92945b064e090c69b33ae728d4 +++ project.cc b3e058f60be065000801b36916c50876b6287133 @@ -138,14 +138,13 @@ 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)) - visible_revs.insert(*it); - - swap(visible_revs, branch.second); + std::set::iterator it = branch.second.begin(); + while (it != branch.second.end()) + if (s(*it)) + branch.second.erase(it++); + else + it++; } L(FL("found heads of branch %s (%s heads)")