url: more bytes/unicodes fussing in url.py around auth handling
Once again, these methods are a little annoying to handle because they
can get unicodes or bytes depending on who's calling. I think we can
probably clean this up a TON once we can run something like pytype and
do typechecking of our Python, but until then this is going to be the
easy way out. This fixes test-http-bundle1.t.
Differential Revision: https://phab.mercurial-scm.org/D2599
test-abort-checkin.t
test-add.t
test-addremove-similar.t
test-addremove.t
test-amend-subrepo.t
test-ancestor.py
test-annotate.py
test-annotate.t
test-audit-path.t
test-audit-subrepo.t
test-automv.t
test-backout.t
test-backwards-remove.t
test-basic.t
test-bheads.t
test-bisect2.t
test-bookmarks-current.t
test-bookmarks-merge.t
test-bookmarks-rebase.t
test-bookmarks-strip.t
test-bookmarks.t
test-branch-option.t
test-branch-tag-confict.t
test-branches.t
test-bundle-phases.t
test-bundle-vs-outgoing.t
test-bundle2-multiple-changegroups.t
test-cappedreader.py
test-casecollision.t
test-cat.t
test-censor.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-pull-corruption.t
test-clone-r.t
test-clone-update-order.t
test-command-template.t
test-commit-amend.t
test-commit-unresolved.t
test-commit.t
test-completion.t
test-conflict.t
test-confused-revert.t
test-contrib-check-code.t
test-contrib-check-commit.t
test-convert-authormap.t
test-convert-clonebranches.t
test-convert-datesort.t
test-convert-filemap.t
test-convert-hg-sink.t
test-convert-hg-source.t
test-convert-hg-startrev.t
test-copy-move-merge.t
test-copytrace-heuristics.t
test-debugbuilddag.t
test-debugbundle.t
test-debugextensions.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-backup.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-encoding.t
test-eol-add.t
test-eol-clone.t
test-eol-tag.t
test-eol-update.t
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-extdiff.t
test-extra-filelog-entry.t
test-filebranch.t
test-fileset-generated.t
test-flags.t
test-generaldelta.t
test-getbundle.t
test-git-export.t
test-glog-topological.t
test-gpg.t
test-graft.t
test-hghave.t
test-hgignore.t
test-hgk.t
test-hgweb-removed.t
test-histedit-arguments.t
test-histedit-base.t
test-histedit-bookmark-motion.t
test-histedit-commute.t
test-histedit-drop.t
test-histedit-edit.t
test-histedit-fold-non-commute.t
test-histedit-fold.t
test-histedit-no-change.t
test-histedit-non-commute-abort.t
test-histedit-non-commute.t
test-histedit-obsolete.t
test-histedit-outgoing.t
test-histedit-templates.t
test-http-branchmap.t
test-http-bundle1.t
test-http-clone-r.t
test-identify.t
test-imports-checker.t
test-inherit-mode.t
test-issue1089.t
test-issue1102.t
test-issue1175.t
test-issue1306.t
test-issue1438.t
test-issue1502.t
test-issue1802.t
test-issue1877.t
test-issue1993.t
test-issue2137.t
test-issue3084.t
test-issue4074.t
test-issue522.t
test-issue586.t
test-issue612.t
test-issue619.t
test-issue672.t
test-issue842.t
test-journal-exists.t
test-largefiles-small-disk.t
test-locate.t
test-lock-badness.t
test-logexchange.t
test-lrucachedict.py
test-mactext.t
test-manifest-merging.t
test-manifest.py
test-manifest.t
test-match.py
test-mdiff.py
test-merge-closedheads.t
test-merge-commit.t
test-merge-criss-cross.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-merge-symlinks.t
test-merge-types.t
test-merge1.t
test-merge10.t
test-merge2.t
test-merge4.t
test-merge5.t
test-merge6.t
test-merge7.t
test-merge8.t
test-merge9.t
test-mq-git.t
test-mq-pull-from-bundle.t
test-mq-qdiff.t
test-mq-qimport-fail-cleanup.t
test-mq-qqueue.t
test-mq-qrefresh.t
test-mq-qsave.t
test-narrow-clone-no-ellipsis.t
test-narrow-clone-nonlinear.t
test-narrow-clone.t
test-narrow-commit.t
test-narrow-copies.t
test-narrow-debugrebuilddirstate.t
test-narrow-exchange-merges.t
test-narrow-exchange.t
test-narrow-merge.t
test-narrow-patch.t
test-narrow-patterns.t
test-narrow-pull.t
test-narrow-rebase.t
test-narrow-shallow-merges.t
test-narrow-shallow.t
test-narrow-update.t
test-newbranch.t
test-obshistory.t
test-obsmarker-template.t
test-obsmarkers-effectflag.t
test-obsolete-bundle-strip.t
test-obsolete-changeset-exchange.t
test-obsolete-checkheads.t
test-obsolete-distributed.t
test-obsolete-tag-cache.t
test-parents.t
test-pathconflicts-merge.t
test-pathconflicts-update.t
test-pending.t
test-permissions.t
test-phases.t
test-pull-branch.t
test-pull-http.t
test-pull-permission.t
test-pull-pull-corruption.t
test-pull-r.t
test-pull-update.t
test-purge.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-http.t
test-push-warn.t
test-pushvars.t
test-rebase-abort.t
test-rebase-base-flag.t
test-rebase-bookmarks.t
test-rebase-brute-force.t
test-rebase-cache.t
test-rebase-check-restore.t
test-rebase-collapse.t
test-rebase-dest.t
test-rebase-detach.t
test-rebase-emptycommit.t
test-rebase-inmemory.t
test-rebase-interruptions.t
test-rebase-issue-noparam-single-rev.t
test-rebase-legacy.t
test-rebase-named-branches.t
test-rebase-newancestor.t
test-rebase-obsolete.t
test-rebase-parameters.t
test-rebase-partial.t
test-rebase-pull.t
test-rebase-rename.t
test-rebase-scenario-global.t
test-rebase-templates.t
test-rebase-transaction.t
test-record.t
test-relink.t
test-remove.t
test-rename-after-merge.t
test-rename-dir-merge.t
test-rename-merge1.t
test-rename.t
test-repair-strip.t
test-repo-compengines.t
test-resolve.t
test-revert-flags.t
test-revert-unknown.t
test-revlog-ancestry.py
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-serve.t
test-share.t
test-show-stack.t
test-show-work.t
test-show.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-ssh-clone-r.t
test-ssh-proto.t
test-sshserver.py
test-status-rev.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-branches.t
test-update-dest.t
test-update-issue1456.t
test-update-names.t
test-update-reverse.t
test-url-rev.t
test-username-newline.t
test-verify.t
test-websub.t
test-win32text.t
test-xdg.t