7 New errors are not allowed. Warnings are strongly discouraged. |
7 New errors are not allowed. Warnings are strongly discouraged. |
8 (The writing "no-che?k-code" is for not skipping this file when checking.) |
8 (The writing "no-che?k-code" is for not skipping this file when checking.) |
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' | xargs "$check_code" --warnings --per-file=0 || false |
11 > sed 's-\\-/-g' | xargs "$check_code" --warnings --per-file=0 || false |
|
12 contrib/perf.py:859: |
|
13 > r.revision(r.node(x)) |
|
14 don't covert rev to node before passing to revision(nodeorrev) |
12 Skipping i18n/polib.py it has no-che?k-code (glob) |
15 Skipping i18n/polib.py it has no-che?k-code (glob) |
|
16 mercurial/bundlerepo.py:117: |
|
17 > return mdiff.textdiff(self.revision(self.node(rev1)), |
|
18 don't covert rev to node before passing to revision(nodeorrev) |
|
19 mercurial/bundlerepo.py:118: |
|
20 > self.revision(self.node(rev2))) |
|
21 don't covert rev to node before passing to revision(nodeorrev) |
13 mercurial/demandimport.py:312: |
22 mercurial/demandimport.py:312: |
14 > if os.environ.get('HGDEMANDIMPORT') != 'disable': |
23 > if os.environ.get('HGDEMANDIMPORT') != 'disable': |
15 use encoding.environ instead (py3) |
24 use encoding.environ instead (py3) |
16 mercurial/encoding.py:54: |
25 mercurial/encoding.py:54: |
17 > environ = os.environ |
26 > environ = os.environ |
34 > policy = os.environ['HGMODULEPOLICY'].encode('utf-8') |
43 > policy = os.environ['HGMODULEPOLICY'].encode('utf-8') |
35 use encoding.environ instead (py3) |
44 use encoding.environ instead (py3) |
36 mercurial/policy.py:49: |
45 mercurial/policy.py:49: |
37 > policy = os.environ.get('HGMODULEPOLICY', policy) |
46 > policy = os.environ.get('HGMODULEPOLICY', policy) |
38 use encoding.environ instead (py3) |
47 use encoding.environ instead (py3) |
|
48 mercurial/revlog.py:441: |
|
49 > t = self.revision(self.node(rev)) |
|
50 don't covert rev to node before passing to revision(nodeorrev) |
|
51 mercurial/revlog.py:1599: |
|
52 > basetext = self.revision(self.node(baserev), _df=fh, raw=raw) |
|
53 don't covert rev to node before passing to revision(nodeorrev) |
|
54 mercurial/revlog.py:1631: |
|
55 > ptext = self.revision(self.node(rev), _df=fh) |
|
56 don't covert rev to node before passing to revision(nodeorrev) |
39 Skipping mercurial/statprof.py it has no-che?k-code (glob) |
57 Skipping mercurial/statprof.py it has no-che?k-code (glob) |
|
58 mercurial/unionrepo.py:93: |
|
59 > return mdiff.textdiff(self.revision(self.node(rev1)), |
|
60 don't covert rev to node before passing to revision(nodeorrev) |
|
61 mercurial/unionrepo.py:94: |
|
62 > self.revision(self.node(rev2))) |
|
63 don't covert rev to node before passing to revision(nodeorrev) |
40 [1] |
64 [1] |
41 |
65 |
42 @commands in debugcommands.py should be in alphabetical order. |
66 @commands in debugcommands.py should be in alphabetical order. |
43 |
67 |
44 >>> import re |
68 >>> import re |