##// END OF EJS Templates
perf: make `perfnodemap` use the new `index.get_rev` api if available...
marmoute -
r43971:22cd0064 default
parent child Browse files
Show More
@@ -1629,7 +1629,11 def perfnodemap(ui, repo, **opts):
1629 def setnodeget():
1629 def setnodeget():
1630 # probably not necessary, but for good measure
1630 # probably not necessary, but for good measure
1631 clearchangelog(unfi)
1631 clearchangelog(unfi)
1632 nodeget[0] = makecl(unfi).nodemap.get
1632 cl = makecl(unfi)
1633 if util.safehasattr(cl.index, 'get_rev'):
1634 nodeget[0] = cl.index.get_rev
1635 else:
1636 nodeget[0] = cl.nodemap.get
1633
1637
1634 def d():
1638 def d():
1635 get = nodeget[0]
1639 get = nodeget[0]
General Comments 0
You need to be logged in to leave comments. Login now