contrib/perf.py
changeset 37355 5bcd5859b505
parent 37269 14cd5290c4e6
child 37844 8fb9985382be
--- a/contrib/perf.py	Tue Apr 03 23:47:01 2018 -0700
+++ b/contrib/perf.py	Wed Apr 04 15:06:32 2018 -0700
@@ -767,7 +767,7 @@
 @command('perfchangeset', formatteropts)
 def perfchangeset(ui, repo, rev, **opts):
     timer, fm = gettimer(ui, opts)
-    n = repo[rev].node()
+    n = scmutil.revsingle(repo, rev).node()
     def d():
         repo.changelog.read(n)
         #repo.changelog._cache = None
@@ -853,7 +853,7 @@
     timer, fm = gettimer(ui, opts)
     import mercurial.revlog
     mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
-    n = repo[rev].node()
+    n = scmutil.revsingle(repo, rev).node()
     cl = mercurial.revlog.revlog(getsvfs(repo), "00changelog.i")
     def d():
         cl.rev(n)