This work is part of a refactoring to unify the revlog index and the nodemap.
This unification prepare the use of a persistent nodemap.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
This work is part of a refactoring to unify the revlog index and the nodemap.
This unification prepare the use of a persistent nodemap.
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | contrib/perf.py (1 line) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
3d23ad8051eb | 97909476aae3 | Pierre-Yves David | Nov 2 2019, 9:45 AM |
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 | ||
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 | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
fm.end() | fm.end() | ||||
def clearcaches(cl): | def clearcaches(cl): | ||||
# behave somewhat consistently across internal API changes | # behave somewhat consistently across internal API changes | ||||
if util.safehasattr(cl, b'clearcaches'): | if util.safehasattr(cl, b'clearcaches'): | ||||
cl.clearcaches() | cl.clearcaches() | ||||
elif util.safehasattr(cl, b'_nodecache'): | elif util.safehasattr(cl, b'_nodecache'): | ||||
# <= hg-5.2 | |||||
from mercurial.node import nullid, nullrev | from mercurial.node import nullid, nullrev | ||||
cl._nodecache = {nullid: nullrev} | cl._nodecache = {nullid: nullrev} | ||||
cl._nodepos = None | cl._nodepos = None | ||||
@command(b'perfheads', formatteropts) | @command(b'perfheads', formatteropts) | ||||
def perfheads(ui, repo, **opts): | def perfheads(ui, repo, **opts): |