##// END OF EJS Templates
perf: don't clobber startrev variable...
Gregory Szorc -
r32219:6b582f9b default
parent child Browse files
Show More
@@ -856,15 +856,15 b' def perfrevlog(ui, repo, file_=None, sta'
856 def d():
856 def d():
857 r = cmdutil.openrevlog(repo, 'perfrevlog', file_, opts)
857 r = cmdutil.openrevlog(repo, 'perfrevlog', file_, opts)
858
858
859 startrev = 0
859 beginrev = startrev
860 endrev = _len(r)
860 endrev = _len(r)
861 dist = opts['dist']
861 dist = opts['dist']
862
862
863 if reverse:
863 if reverse:
864 startrev, endrev = endrev, startrev
864 beginrev, endrev = endrev, beginrev
865 dist = -1 * dist
865 dist = -1 * dist
866
866
867 for x in xrange(startrev, endrev, dist):
867 for x in xrange(beginrev, endrev, dist):
868 r.revision(r.node(x))
868 r.revision(r.node(x))
869
869
870 timer(d)
870 timer(d)
General Comments 0
You need to be logged in to leave comments. Login now