Mercurial > hg
view contrib/python3-whitelist @ 37860:a91f31a1e281
revlog: extract function for getting node from known-to-exist rev
Many of the calls to index_node() (which converts a rev to a nodeid)
are done with a rev that's know to exist. If the function fails,
there's something really wrong and we should just abort. This was done
in only one place. This patch starts by extracting that code to a
function that we can reuse in later patches.
Differential Revision: https://phab.mercurial-scm.org/D3456
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 04 May 2018 21:58:43 -0700 |
parents | cc932c15b9ee |
children | 39c17718f311 |
line wrap: on
line source
test-abort-checkin.t test-add.t test-addremove-similar.t test-addremove.t test-amend-subrepo.t test-amend.t test-ancestor.py test-annotate.py test-annotate.t test-archive-symlinks.t test-atomictempfile.py 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-bisect.t test-bisect2.t test-bisect3.t test-blackbox.t test-bookmarks-current.t test-bookmarks-merge.t test-bookmarks-rebase.t test-bookmarks-strip.t test-bookmarks.t test-branch-change.t test-branch-option.t test-branch-tag-confict.t test-branches.t test-bundle-phases.t test-bundle-type.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-cgi.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-interactive.t test-commit-multiple.t test-commit-unresolved.t test-commit.t test-committer.t test-completion.t test-config-env.py test-config.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-convert-splicemap.t test-convert-tagsbranch-topology.t test-copy-move-merge.t test-copy.t test-copytrace-heuristics.t test-debugbuilddag.t test-debugbundle.t test-debugextensions.t test-debugindexdot.t test-debugrename.t test-default-push.t test-diff-binary-file.t test-diff-change.t test-diff-copy-depth.t test-diff-hashes.t test-diff-ignore-whitespace.t test-diff-indent-heuristic.t test-diff-issue2761.t test-diff-newlines.t test-diff-reverse.t test-diff-subdir.t test-diff-unified.t test-diff-upgrade.t test-diffdir.t test-diffstat.t test-directaccess.t test-dirstate-backup.t test-dirstate-nonnormalset.t test-dirstate.t test-doctest.py test-double-merge.t test-drawdag.t test-duplicateoptions.py test-editor-filename.t test-empty-dir.t test-empty-file.t test-empty-group.t test-empty.t test-encode.t test-encoding-func.py test-encoding.t test-eol-add.t test-eol-clone.t test-eol-hook.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-export.t test-extdata.t test-extdiff.t test-extra-filelog-entry.t test-filebranch.t test-fileset-generated.t test-fix-topology.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-hg-parseurl.py test-hghave.t test-hgignore.t test-hgk.t test-hgweb-bundle.t test-hgweb-descend-empties.t test-hgweb-empty.t test-hgweb-removed.t test-hgwebdirsym.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-http.t test-identify.t test-import-unknown.t test-import.t test-imports-checker.t test-incoming-outgoing.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-issue660.t test-issue672.t test-issue842.t test-journal-exists.t test-journal-share.t test-journal.t test-largefiles-cache.t test-largefiles-misc.t test-largefiles-small-disk.t test-largefiles-update.t test-largefiles.t test-lfs-largefiles.t test-linerange.py test-locate.t test-lock-badness.t test-log-linerange.t test-log.t test-logexchange.t test-lrucachedict.py test-mactext.t test-mailmap.t test-manifest-merging.t test-manifest.py test-manifest.t test-match.py test-mdiff.py test-merge-changedelete.t test-merge-closedheads.t test-merge-commit.t test-merge-criss-cross.t test-merge-default.t test-merge-force.t test-merge-halt.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-tools.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-header-date.t test-mq-header-from.t test-mq-merge.t test-mq-pull-from-bundle.t test-mq-qclone-http.t test-mq-qdelete.t test-mq-qdiff.t test-mq-qfold.t test-mq-qgoto.t test-mq-qimport-fail-cleanup.t test-mq-qnew.t test-mq-qpush-exact.t test-mq-qqueue.t test-mq-qrefresh-interactive.t test-mq-qrefresh-replace-log-message.t test-mq-qrefresh.t test-mq-qrename.t test-mq-qsave.t test-mq-safety.t test-mq-subrepo.t test-mq-symlinks.t test-mv-cp-st-diff.t test-narrow-archive.t test-narrow-clone-no-ellipsis.t test-narrow-clone-non-narrow-server.t test-narrow-clone-nonlinear.t test-narrow-clone.t test-narrow-commit.t test-narrow-copies.t test-narrow-debugcommands.t test-narrow-debugrebuilddirstate.t test-narrow-exchange-merges.t test-narrow-exchange.t test-narrow-expanddirstate.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-strip.t test-narrow-update.t test-nested-repo.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-conflicts.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-mq-skip.t test-rebase-mq.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-legacy-lookup.t test-revset-outgoing.t test-rollback.t test-run-tests.py test-run-tests.t test-schemes.t test-serve.t test-setdiscovery.t test-share.t test-shelve.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-import.t test-sparse-merges.t test-sparse-profiles.t test-sparse-requirement.t test-sparse-verbose-json.t test-ssh-clone-r.t test-ssh-proto.t test-sshserver.py test-stack.t test-status-rev.t test-status-terse.t test-strip-cross.t test-strip.t test-subrepo-deep-nested-change.t test-subrepo-missing.t test-subrepo-recursion.t test-subrepo-relative-path.t test-subrepo.t test-symlinks.t test-tag.t test-tags.t test-template-engine.t test-treemanifest.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-upgrade-repo.t test-url-download.t test-url-rev.t test-username-newline.t test-verify.t test-websub.t test-win32text.t test-wireproto-clientreactor.py test-wireproto-framing.py test-wireproto-serverreactor.py test-xdg.t