contrib/python3-whitelist
author Jun Wu <quark@fb.com>
Fri, 08 Dec 2017 14:20:34 -0800
changeset 35330 0c1aff6d73a7
parent 35228 04a2820f2fca
child 35375 ea645c6c6d46
permissions -rw-r--r--
revset: use phasecache.getrevset to calculate public() Other revsets like secret(), draft(), _nonpublic() are using phasescache.getrevset already. The latter is more efficient after D1606. So let's migrate the public() revset function too. Tested using: $ hg debugshell --hidden --cwd hg-committed` In [1]: %timeit len(repo.revs('public()')) * Before D1606: 10 loops, best of 3: 22.5 ms per loop * Before this change, after D1606: 10 loops, best of 3: 28.6 ms per loop * After this change: 10 loops, best of 3: 20.2 ms per loop Therefore `public()` revset becomes even slightly faster after the data structure change by D1606. A similar performance win could also be observed on a large repo. A side effect is `phasecache.getrevset` needs to take a `subset` parameter. That was added with a default value so it won't cause BC issues. Differential Revision: https://phab.mercurial-scm.org/D1620
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
     1
test-add.t
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
     2
test-addremove-similar.t
34024
19b8eee8b4ec python3: whitelist another 5 passing tests found with the ratchet script
Augie Fackler <raf@durin42.com>
parents: 33992
diff changeset
     3
test-addremove.t
32894
ec9ed269edc3 py3: pass the path in hg.repository() as bytes
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32854
diff changeset
     4
test-ancestor.py
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
     5
test-automv.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
     6
test-backwards-remove.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
     7
test-bheads.t
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
     8
test-bisect2.t
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
     9
test-bookmarks-merge.t
34223
fa9f5d6733d3 python3: another 3 tests whitelisted
Augie Fackler <raf@durin42.com>
parents: 34024
diff changeset
    10
test-bookmarks-strip.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    11
test-branch-tag-confict.t
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    12
test-casecollision.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    13
test-changelog-exec.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    14
test-check-commit.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    15
test-check-execute.t
33992
492cd4bbca08 contrib: add test-check-module-imports.t to the Python 3 whitelist
Augie Fackler <raf@durin42.com>
parents: 33926
diff changeset
    16
test-check-module-imports.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    17
test-check-pyflakes.t
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    18
test-check-pylint.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    19
test-check-shbang.t
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    20
test-children.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    21
test-commit-unresolved.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    22
test-contrib-check-code.t
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    23
test-contrib-check-commit.t
34024
19b8eee8b4ec python3: whitelist another 5 passing tests found with the ratchet script
Augie Fackler <raf@durin42.com>
parents: 33992
diff changeset
    24
test-debugrename.t
19b8eee8b4ec python3: whitelist another 5 passing tests found with the ratchet script
Augie Fackler <raf@durin42.com>
parents: 33992
diff changeset
    25
test-diff-copy-depth.t
19b8eee8b4ec python3: whitelist another 5 passing tests found with the ratchet script
Augie Fackler <raf@durin42.com>
parents: 33992
diff changeset
    26
test-diff-hashes.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    27
test-diff-issue2761.t
33305
aaa1f8f514cf py3: fix test-diff-newlines.t to be compatible with py3
Boris Feld <boris.feld@octobus.net>
parents: 33118
diff changeset
    28
test-diff-newlines.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    29
test-diff-reverse.t
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    30
test-diff-subdir.t
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    31
test-dirstate-nonnormalset.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    32
test-doctest.py
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    33
test-double-merge.t
33838
48f3e87ce650 python3: whitelist four more passing tests
Augie Fackler <augie@google.com>
parents: 33586
diff changeset
    34
test-duplicateoptions.py
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    35
test-empty-dir.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    36
test-empty-file.t
33840
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    37
test-empty.t
33926
f4433f2713d0 encoding: add function to test if a str consists of ASCII characters
Yuya Nishihara <yuya@tcha.org>
parents: 33878
diff changeset
    38
test-encoding-func.py
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    39
test-excessive-merge.t
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    40
test-execute-bit.t
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    41
test-gpg.t
33838
48f3e87ce650 python3: whitelist four more passing tests
Augie Fackler <augie@google.com>
parents: 33586
diff changeset
    42
test-hghave.t
33878
c90014d5cdc3 python3: whitelist test-imports-checker.t, which now passes
Augie Fackler <raf@durin42.com>
parents: 33840
diff changeset
    43
test-imports-checker.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    44
test-issue1089.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    45
test-issue1877.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    46
test-issue1993.t
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    47
test-issue522.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    48
test-issue612.t
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    49
test-issue619.t
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    50
test-issue672.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    51
test-issue842.t
34223
fa9f5d6733d3 python3: another 3 tests whitelisted
Augie Fackler <raf@durin42.com>
parents: 34024
diff changeset
    52
test-journal-exists.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    53
test-locate.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    54
test-lrucachedict.py
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    55
test-manifest.py
33838
48f3e87ce650 python3: whitelist four more passing tests
Augie Fackler <augie@google.com>
parents: 33586
diff changeset
    56
test-match.py
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    57
test-merge-default.t
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    58
test-merge-remove.t
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    59
test-merge-revert.t
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    60
test-merge-subrepos.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    61
test-merge2.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    62
test-merge4.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    63
test-merge5.t
34024
19b8eee8b4ec python3: whitelist another 5 passing tests found with the ratchet script
Augie Fackler <raf@durin42.com>
parents: 33992
diff changeset
    64
test-permissions.t
33840
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    65
test-push-checkheads-pruned-B1.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    66
test-push-checkheads-pruned-B6.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    67
test-push-checkheads-pruned-B7.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    68
test-push-checkheads-superceed-A1.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    69
test-push-checkheads-superceed-A4.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    70
test-push-checkheads-superceed-A5.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    71
test-push-checkheads-superceed-A8.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    72
test-push-checkheads-unpushed-D1.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    73
test-push-checkheads-unpushed-D6.t
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    74
test-push-checkheads-unpushed-D7.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    75
test-rename-merge1.t
33840
627cb36b537f python3: whitelist another *13* tests that now pass
Augie Fackler <augie@google.com>
parents: 33838
diff changeset
    76
test-rename.t
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    77
test-revert-flags.t
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    78
test-revert-unknown.t
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    79
test-revlog-group-emptyiter.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    80
test-revlog-packentry.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    81
test-run-tests.py
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    82
test-show-stack.t
34223
fa9f5d6733d3 python3: another 3 tests whitelisted
Augie Fackler <raf@durin42.com>
parents: 34024
diff changeset
    83
test-status-terse.t
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    84
test-uncommit.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    85
test-unified-test.t
34350
f975cb7c4dbe py3: whitelist 15 more tests passing on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 34262
diff changeset
    86
test-update-issue1456.t
35228
04a2820f2fca python3: whitelist many more passing tests
Augie Fackler <augie@google.com>
parents: 35142
diff changeset
    87
test-update-names.t
33118
cc9501fa5574 py3: update the python3-whitelist with new tests which pass on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 32894
diff changeset
    88
test-update-reverse.t
32854
7a877e569ed6 contrib: check in a whitelist of passing tests in Python 3
Augie Fackler <augie@google.com>
parents:
diff changeset
    89
test-xdg.t