Before this patch, the usual checking (especially, inline-ess) were not
performed when warming the cache through hg debugupdatecache.
This is now fixed.
pulkit | |
Alphare |
hg-reviewers |
Before this patch, the usual checking (especially, inline-ess) were not
performed when warming the cache through hg debugupdatecache.
This is now fixed.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/revlogutils/nodemap.py (5 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
e6262b85ee4f | 44aff45b556d | Pierre-Yves David | Apr 13 2020, 12:04 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
def update_persistent_nodemap(revlog): | def update_persistent_nodemap(revlog): | ||||
"""update the persistent nodemap right now | """update the persistent nodemap right now | ||||
To be used for updating the nodemap on disk outside of a normal transaction | To be used for updating the nodemap on disk outside of a normal transaction | ||||
setup (eg, `debugupdatecache`). | setup (eg, `debugupdatecache`). | ||||
""" | """ | ||||
if revlog._inline: | |||||
return # inlined revlog are too small for this to be relevant | |||||
if revlog.nodemap_file is None: | |||||
return # we do not use persistent_nodemap on this revlog | |||||
notr = _NoTransaction() | notr = _NoTransaction() | ||||
_persist_nodemap(notr, revlog) | _persist_nodemap(notr, revlog) | ||||
for k in sorted(notr._postclose): | for k in sorted(notr._postclose): | ||||
notr._postclose[k](None) | notr._postclose[k](None) | ||||
def _persist_nodemap(tr, revlog, pending=False): | def _persist_nodemap(tr, revlog, pending=False): | ||||
"""Write nodemap data on disk for a given revlog | """Write nodemap data on disk for a given revlog |