Mercurial > hg
view contrib/python3-whitelist @ 36043:223ed0b53f08
py3: more robustly cast UUID to bytes
The UUID type only has __str__ implemented. So we need to cast to
bytes on Python 3.
We need an actual bytes instance here (bytestr won't do) because
the re.escape() later iterates over characters and characters
need to behave like ints, not bytes instances of length 1.
Differential Revision: https://phab.mercurial-scm.org/D2144
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 13:23:26 -0800 |
parents | fd9f2a22ee83 |
children | 7f68235f23ff |
line wrap: on
line source
test-add.t test-addremove-similar.t test-addremove.t test-amend-subrepo.t test-ancestor.py test-annotate.py test-automv.t test-backwards-remove.t test-bheads.t test-bisect2.t test-bookmarks-merge.t test-bookmarks-strip.t test-branch-option.t test-branch-tag-confict.t test-bundle-vs-outgoing.t test-casecollision.t test-cat.t test-changelog-exec.t test-check-commit.t test-check-execute.t test-check-module-imports.t test-check-pyflakes.t test-check-pylint.t test-check-shbang.t test-children.t test-clone-r.t test-clone-update-order.t test-commit-unresolved.t test-completion.t test-confused-revert.t test-contrib-check-code.t test-contrib-check-commit.t test-copy-move-merge.t test-debugindexdot.t test-debugrename.t test-diff-binary-file.t test-diff-change.t test-diff-copy-depth.t test-diff-hashes.t test-diff-issue2761.t test-diff-newlines.t test-diff-reverse.t test-diff-subdir.t test-diffdir.t test-directaccess.t test-dirstate-nonnormalset.t test-doctest.py test-double-merge.t test-drawdag.t test-duplicateoptions.py test-empty-dir.t test-empty-file.t test-empty-group.t test-empty.t test-encoding-func.py test-excessive-merge.t test-exchange-obsmarkers-case-A1.t test-exchange-obsmarkers-case-A2.t test-exchange-obsmarkers-case-A3.t test-exchange-obsmarkers-case-A4.t test-exchange-obsmarkers-case-A5.t test-exchange-obsmarkers-case-A6.t test-exchange-obsmarkers-case-A7.t test-exchange-obsmarkers-case-B1.t test-exchange-obsmarkers-case-B2.t test-exchange-obsmarkers-case-B3.t test-exchange-obsmarkers-case-B4.t test-exchange-obsmarkers-case-B5.t test-exchange-obsmarkers-case-B6.t test-exchange-obsmarkers-case-B7.t test-exchange-obsmarkers-case-C1.t test-exchange-obsmarkers-case-C2.t test-exchange-obsmarkers-case-C3.t test-exchange-obsmarkers-case-C4.t test-exchange-obsmarkers-case-D1.t test-exchange-obsmarkers-case-D2.t test-exchange-obsmarkers-case-D3.t test-exchange-obsmarkers-case-D4.t test-execute-bit.t test-extra-filelog-entry.t test-filebranch.t test-flags.t test-generaldelta.t test-glog-topological.t test-gpg.t test-hghave.t test-imports-checker.t test-inherit-mode.t test-issue1089.t test-issue1175.t test-issue1306.t test-issue1502.t test-issue1802.t test-issue1877.t test-issue1993.t test-issue522.t test-issue586.t test-issue612.t test-issue619.t test-issue672.t test-issue842.t test-journal-exists.t test-locate.t test-logexchange.t test-lrucachedict.py test-manifest-merging.t test-manifest.py test-manifest.t test-match.py test-merge-commit.t test-merge-default.t test-merge-internal-tools-pattern.t test-merge-local.t test-merge-remove.t test-merge-revert.t test-merge-revert2.t test-merge-subrepos.t test-merge10.t test-merge2.t test-merge4.t test-merge5.t test-merge6.t test-merge7.t test-merge8.t test-mq-qimport-fail-cleanup.t test-mq-qsave.t test-obshistory.t test-obsolete-changeset-exchange.t test-obsolete-checkheads.t test-obsolete-distributed.t test-parents.t test-permissions.t test-pull-branch.t test-pull-permission.t test-push-checkheads-partial-C1.t test-push-checkheads-partial-C2.t test-push-checkheads-partial-C3.t test-push-checkheads-partial-C4.t test-push-checkheads-pruned-B1.t test-push-checkheads-pruned-B2.t test-push-checkheads-pruned-B3.t test-push-checkheads-pruned-B4.t test-push-checkheads-pruned-B5.t test-push-checkheads-pruned-B6.t test-push-checkheads-pruned-B7.t test-push-checkheads-pruned-B8.t test-push-checkheads-superceed-A1.t test-push-checkheads-superceed-A2.t test-push-checkheads-superceed-A3.t test-push-checkheads-superceed-A4.t test-push-checkheads-superceed-A5.t test-push-checkheads-superceed-A6.t test-push-checkheads-superceed-A7.t test-push-checkheads-superceed-A8.t test-push-checkheads-unpushed-D1.t test-push-checkheads-unpushed-D2.t test-push-checkheads-unpushed-D3.t test-push-checkheads-unpushed-D4.t test-push-checkheads-unpushed-D5.t test-push-checkheads-unpushed-D6.t test-push-checkheads-unpushed-D7.t test-push-warn.t test-rebase-inmemory.t test-rebase-issue-noparam-single-rev.t test-rebase-transaction.t test-record.t test-rename-after-merge.t test-rename-dir-merge.t test-rename-merge1.t test-rename.t test-revert-flags.t test-revert-unknown.t test-revlog-group-emptyiter.t test-revlog-mmapindex.t test-revlog-packentry.t test-revset-dirstate-parents.t test-revset-outgoing.t test-run-tests.py test-show-stack.t test-simple-update.t test-single-head.t test-sparse-clear.t test-sparse-merges.t test-sparse-requirement.t test-sparse-verbose-json.t test-status-terse.t test-strip-cross.t test-strip.t test-unamend.t test-uncommit.t test-unified-test.t test-unrelated-pull.t test-up-local-change.t test-update-dest.t test-update-issue1456.t test-update-names.t test-update-reverse.t test-xdg.t