##// END OF EJS Templates
branchcache: gather newly closed head in a dedicated set...
marmoute -
r52427:767b62cb default
parent child Browse files
Show More
@@ -288,6 +288,7 class _BaseBranchCache:
288 288 obsrevs = obsolete.getrevs(repo, b'obsolete')
289 289 # collect new branch entries
290 290 newbranches = {}
291 new_closed = set()
291 292 obs_ignored = set()
292 293 getbranchinfo = repo.revbranchcache().branchinfo
293 294 max_rev = -1
@@ -301,7 +302,7 class _BaseBranchCache:
301 302 branch, closesbranch = getbranchinfo(r)
302 303 newbranches.setdefault(branch, []).append(r)
303 304 if closesbranch:
304 self._closednodes.add(cl.node(r))
305 new_closed.add(r)
305 306 if max_rev < 0:
306 307 msg = "running branchcache.update without revision to update"
307 308 raise error.ProgrammingError(msg)
@@ -391,6 +392,8 class _BaseBranchCache:
391 392 if bheadset:
392 393 self[branch] = [cl.node(rev) for rev in sorted(bheadset)]
393 394
395 self._closednodes.update(cl.node(rev) for rev in new_closed)
396
394 397 duration = util.timer() - starttime
395 398 repo.ui.log(
396 399 b'branchcache',
General Comments 0
You need to be logged in to leave comments. Login now