Show More
@@ -288,6 +288,7 class _BaseBranchCache: | |||||
288 | obsrevs = obsolete.getrevs(repo, b'obsolete') |
|
288 | obsrevs = obsolete.getrevs(repo, b'obsolete') | |
289 | # collect new branch entries |
|
289 | # collect new branch entries | |
290 | newbranches = {} |
|
290 | newbranches = {} | |
|
291 | new_closed = set() | |||
291 | obs_ignored = set() |
|
292 | obs_ignored = set() | |
292 | getbranchinfo = repo.revbranchcache().branchinfo |
|
293 | getbranchinfo = repo.revbranchcache().branchinfo | |
293 | max_rev = -1 |
|
294 | max_rev = -1 | |
@@ -301,7 +302,7 class _BaseBranchCache: | |||||
301 | branch, closesbranch = getbranchinfo(r) |
|
302 | branch, closesbranch = getbranchinfo(r) | |
302 | newbranches.setdefault(branch, []).append(r) |
|
303 | newbranches.setdefault(branch, []).append(r) | |
303 | if closesbranch: |
|
304 | if closesbranch: | |
304 |
|
|
305 | new_closed.add(r) | |
305 | if max_rev < 0: |
|
306 | if max_rev < 0: | |
306 | msg = "running branchcache.update without revision to update" |
|
307 | msg = "running branchcache.update without revision to update" | |
307 | raise error.ProgrammingError(msg) |
|
308 | raise error.ProgrammingError(msg) | |
@@ -391,6 +392,8 class _BaseBranchCache: | |||||
391 | if bheadset: |
|
392 | if bheadset: | |
392 | self[branch] = [cl.node(rev) for rev in sorted(bheadset)] |
|
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 | duration = util.timer() - starttime |
|
397 | duration = util.timer() - starttime | |
395 | repo.ui.log( |
|
398 | repo.ui.log( | |
396 | b'branchcache', |
|
399 | b'branchcache', |
General Comments 0
You need to be logged in to leave comments.
Login now