##// END OF EJS Templates
branchmap: check node against changelog instead of repo...
branchmap: check node against changelog instead of repo Testing 'node in repo' requires constructing a changectx, which is a little expensive. Testing 'repo.changelog.hasnode(node)' is notably faster. This saves 10-20ms off of every command, when testing a few thousand nodes from the branch cache. I considered changing the implementation of localrepository.__contains__ so every place would benefit from the change, but since localrepository.__contains__ uses changectx to check if the commit exists, it means it supports a wider range of possible inputs (like revs, hashes, '.', etc), so it seemed unnecessarily risky.

File last commit:

r16773:d490edc7 default
r28364:f1460af1 default
Show More
graph.tmpl
6 lines | 76 B | application/x-cheetah | CheetahLexer
Paul Boddie
hgweb: make graph data suitable for template usage...
r16773 {header}
# HG graph
# Node ID {node}
# Rows shown {rows}
{nodes%graphnode}