##// END OF EJS Templates
perf: don't convert rev to node before calling revlog.revision()
Gregory Szorc -
r32225:73c3e226 default
parent child Browse files
Show More
@@ -864,7 +864,7 b' def perfrevlog(ui, repo, file_=None, sta'
864 dist = -1 * dist
864 dist = -1 * dist
865
865
866 for x in xrange(beginrev, endrev, dist):
866 for x in xrange(beginrev, endrev, dist):
867 r.revision(r.node(x))
867 r.revision(x)
868
868
869 timer, fm = gettimer(ui, opts)
869 timer, fm = gettimer(ui, opts)
870 timer(d)
870 timer(d)
@@ -9,15 +9,11 b' New errors are not allowed. Warnings are'
9
9
10 $ hg locate -X contrib/python-zstandard -X hgext/fsmonitor/pywatchman |
10 $ hg locate -X contrib/python-zstandard -X hgext/fsmonitor/pywatchman |
11 > sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
11 > sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
12 contrib/perf.py:867:
13 > r.revision(r.node(x))
14 don't convert rev to node before passing to revision(nodeorrev)
15 Skipping i18n/polib.py it has no-che?k-code (glob)
12 Skipping i18n/polib.py it has no-che?k-code (glob)
16 Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
13 Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
17 Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)
14 Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)
18 Skipping mercurial/statprof.py it has no-che?k-code (glob)
15 Skipping mercurial/statprof.py it has no-che?k-code (glob)
19 Skipping tests/badserverext.py it has no-che?k-code (glob)
16 Skipping tests/badserverext.py it has no-che?k-code (glob)
20 [1]
21
17
22 @commands in debugcommands.py should be in alphabetical order.
18 @commands in debugcommands.py should be in alphabetical order.
23
19
@@ -165,7 +165,3 b' Check perf.py for historical portability'
165 $ (hg files -r 1.2 glob:mercurial/*.c glob:mercurial/*.py;
165 $ (hg files -r 1.2 glob:mercurial/*.c glob:mercurial/*.py;
166 > hg files -r tip glob:mercurial/*.c glob:mercurial/*.py) |
166 > hg files -r tip glob:mercurial/*.c glob:mercurial/*.py) |
167 > "$TESTDIR"/check-perf-code.py contrib/perf.py
167 > "$TESTDIR"/check-perf-code.py contrib/perf.py
168 contrib/perf.py:867:
169 > r.revision(r.node(x))
170 don't convert rev to node before passing to revision(nodeorrev)
171 [1]
General Comments 0
You need to be logged in to leave comments. Login now