Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 44465:336ec75ed1ac
nodemap: warm the persistent nodemap on disk with debugupdatecache
When appropriate, the nodemap cache file will be created.
Differential Revision: https://phab.mercurial-scm.org/D8173
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 18 Feb 2020 19:11:13 +0100 |
parents | 6306baa7d19a |
children | 9d2b2df2c2ba |
comparison
equal
deleted
inserted
replaced
44464:7b1f516e7606 | 44465:336ec75ed1ac |
---|---|
2502 self.filtered(b'served').branchmap() | 2502 self.filtered(b'served').branchmap() |
2503 self.filtered(b'served.hidden').branchmap() | 2503 self.filtered(b'served.hidden').branchmap() |
2504 | 2504 |
2505 if full: | 2505 if full: |
2506 unfi = self.unfiltered() | 2506 unfi = self.unfiltered() |
2507 | |
2508 self.changelog.update_caches(transaction=tr) | |
2509 | |
2507 rbc = unfi.revbranchcache() | 2510 rbc = unfi.revbranchcache() |
2508 for r in unfi.changelog: | 2511 for r in unfi.changelog: |
2509 rbc.branchinfo(r) | 2512 rbc.branchinfo(r) |
2510 rbc.write() | 2513 rbc.write() |
2511 | 2514 |