# HG changeset patch # User Anton Shestakov # Date 1675694316 -14400 # Node ID 9a41c3c293ae0a59d510cf8bd8700188e5c979d8 # Parent 6ab7c7964ad306191c0d5c186664bfba7f19d2e5# Parent 19573de6a6916093b57cc447347f807e05453d1e test-compat: merge mercurial-6.1 into mercurial-6.0 diff -r 19573de6a691 -r 9a41c3c293ae .gitlab-ci.yml --- a/.gitlab-ci.yml Mon Feb 06 18:38:31 2023 +0400 +++ b/.gitlab-ci.yml Mon Feb 06 18:38:36 2023 +0400 @@ -1,6 +1,5 @@ .prepare_hg: &prepare_hg - hg pull -R /ci/repos/mercurial/ - - hg pull -R /ci/repos/mercurial/ https://www.mercurial-scm.org/repo/hg-committed - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$(hg identify --branch)")} - hg -R /ci/repos/mercurial/ update "$hg_branch" - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}') @@ -30,11 +29,34 @@ - ("$PYTHON" --version) - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) +checks-py2: + <<: *runtests + variables: + PY: py2 + PYTHON: python2 + RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" + checks-py3: <<: *runtests variables: RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" +tests-py2-cext: + <<: *runtests + variables: + PY: py2 + PYTHON: python2 + RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" + TEST_HGMODULEPOLICY: "c" + +tests-py2-pure: + <<: *runtests + variables: + PY: py2 + PYTHON: python2 + RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" + TEST_HGMODULEPOLICY: "py" + tests-py3-cext: <<: *runtests variables: @@ -47,38 +69,6 @@ RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" TEST_HGMODULEPOLICY: "py" -tests-py2-6.1: - <<: *runtests - variables: - PY: py2 - PYTHON: python2 - RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" - TEST_HGMODULEPOLICY: "c" - HG_BRANCH: 'max(tag("re:^6\.1"))' - allow_failure: true - -doc: - image: registry.heptapod.net/mercurial/ci-images/py3-evolve-doc - script: - - make doc - variables: - LANG: en_US.UTF-8 - PYTHONPATH: "/ci/repos/mercurial:$PYTHONPATH" - artifacts: - paths: - - html/* - -sdist: - stage: .post - image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd - script: - - python3 setup.py sdist - artifacts: - paths: - - dist/* - only: - - tags - .windows_runtests_template: &windows_runtests before_script: - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt' @@ -105,28 +95,3 @@ RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" TEST_HGMODULEPOLICY: "c" when: manual - -deb: - image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd - script: - - apt-get update && apt-get -yq install devscripts equivs --no-install-recommends - - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control - - version=$($PYTHON setup.py --version) - - debversion="$version+hg$(date +%Y%m%d)+$(hg log -r . -T '{node|short}')" - - make deb-prepare - - mkdir -p debs - - mv ../mercurial-evolve_$version.orig debs/mercurial-evolve_$debversion.orig - - cd debs/mercurial-evolve_$debversion.orig - - DEBEMAIL="evolve-testers@mercurial-scm.org" debchange --newversion "$debversion-1" "automated build" - - debuild --unsigned-source --unsigned-changes --build=binary - - dpkg --contents ../mercurial-evolve_$debversion-1_all.deb - variables: - DEBIAN_FRONTEND: noninteractive - DEB_BUILD_OPTIONS: nocheck nodoc - artifacts: - paths: - - debs/*.build - - debs/*.buildinfo - - debs/*.changes - - debs/*.deb - when: manual diff -r 19573de6a691 -r 9a41c3c293ae tests/test-amend.t --- a/tests/test-amend.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-amend.t Mon Feb 06 18:38:36 2023 +0400 @@ -218,7 +218,6 @@ $ echo edited_a > a $ hg ci -m "edited a" 1 new orphan changesets - created new head $ hg debugobsolete $(hg id -ir 0 --debug) $(hg id -ir 2 --debug) 1 new obsolescence markers 2 new content-divergent changesets diff -r 19573de6a691 -r 9a41c3c293ae tests/test-discovery-obshashrange.t --- a/tests/test-discovery-obshashrange.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-discovery-obshashrange.t Mon Feb 06 18:38:36 2023 +0400 @@ -307,8 +307,7 @@ * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending hello command (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending between command (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: * (glob) - * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Acheckheads%3Drelated%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Astream%3Dv2 changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) (no-zstd !) - * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Acheckheads%3Drelated%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Astream%3Dv2 changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlog-compression-zstd,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) (zstd !) + * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Acheckheads%3Drelated%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Astream%3Dv2 changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: 1 (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending protocaps command (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> query 1; heads (glob) diff -r 19573de6a691 -r 9a41c3c293ae tests/test-evolve-content-divergent-corner-cases.t --- a/tests/test-evolve-content-divergent-corner-cases.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-evolve-content-divergent-corner-cases.t Mon Feb 06 18:38:36 2023 +0400 @@ -375,7 +375,7 @@ with: [6] updated e base: [4] added e rebasing "divergent" content-divergent changeset ff6f7cd76a7c on 5f6d8a4bf34a - file 'd' was deleted in local [local] but was modified in other [other]. + file 'd' was deleted in local but was modified in other. You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. What do you want to do? c 0 files updated, 1 files merged, 0 files removed, 0 files unresolved diff -r 19573de6a691 -r 9a41c3c293ae tests/test-evolve-content-divergent-interrupted.t --- a/tests/test-evolve-content-divergent-interrupted.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-evolve-content-divergent-interrupted.t Mon Feb 06 18:38:36 2023 +0400 @@ -383,8 +383,8 @@ $ hg evolve -c evolving 8:a8673909e314 "added d" merging a + merging d warning: conflicts while merging a! (edit, then use 'hg resolve --mark') - merging d warning: conflicts while merging d! (edit, then use 'hg resolve --mark') 0 files updated, 0 files merged, 0 files removed, 2 files unresolved unresolved merge conflicts diff -r 19573de6a691 -r 9a41c3c293ae tests/test-evolve-content-divergent-user-independent-resolution.t --- a/tests/test-evolve-content-divergent-user-independent-resolution.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-evolve-content-divergent-user-independent-resolution.t Mon Feb 06 18:38:36 2023 +0400 @@ -35,7 +35,7 @@ $ hg push -q $ cd ../local - $ hg push --force -q + $ hg push -q 2 new content-divergent changesets $ hg pull -q 2 new content-divergent changesets diff -r 19573de6a691 -r 9a41c3c293ae tests/test-evolve-obshistory.t --- a/tests/test-evolve-obshistory.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-evolve-obshistory.t Mon Feb 06 18:38:36 2023 +0400 @@ -151,7 +151,7 @@ 2 new obsolescence markers obsoleted 1 changesets new changesets 7a230b46bf61 (1 drafts) - (run 'hg heads' to see heads) + (run 'hg heads' to see heads, 'hg merge' to merge) working directory parent is obsolete! (471f378eab4c) (use 'hg evolve' to update to its successor: 7a230b46bf61) Check that obslog works with markers pointing to missing local changectx diff -r 19573de6a691 -r 9a41c3c293ae tests/test-evolve-progress.t --- a/tests/test-evolve-progress.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-evolve-progress.t Mon Feb 06 18:38:36 2023 +0400 @@ -101,8 +101,6 @@ committing changelog updating the branch cache obscache is out of date - invalid branch cache (served): tip differs - invalid branch cache (served.hidden): tip differs resolving manifests branchmerge: False, force: False, partial: False ancestor: df5d742141b0, local: df5d742141b0+, remote: 152c368c622b @@ -126,11 +124,15 @@ ancestor: 152c368c622b, local: f8d7d38c0a88+, remote: df5d742141b0 starting 4 threads for background file closing (?) preserving a for resolve of a - a: versions differ -> m + a: versions differ -> m (premerge) updating: a 1/1 files (100.00%) picked tool ':merge' for a (binary False symlink False changedelete False) merging a my a@f8d7d38c0a88+ other a@df5d742141b0 ancestor a@152c368c622b + a: versions differ -> m (merge) + updating: a 2/2 files (100.00%) + picked tool ':merge' for a (binary False symlink False changedelete False) + my a@f8d7d38c0a88+ other a@df5d742141b0 ancestor a@152c368c622b warning: conflicts while merging a! (edit, then use 'hg resolve --mark') unresolved merge conflicts (see 'hg help evolve.interrupted') @@ -177,7 +179,6 @@ updating the branch cache obscache is out of date invalid branch cache (served): tip differs - invalid branch cache (served.hidden): tip differs resolving manifests branchmerge: False, force: False, partial: False ancestor: 1edc3bac9e3c, local: 1edc3bac9e3c+, remote: f8d7d38c0a88 diff -r 19573de6a691 -r 9a41c3c293ae tests/test-evolve-public-content-divergent-corner-cases.t --- a/tests/test-evolve-public-content-divergent-corner-cases.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-evolve-public-content-divergent-corner-cases.t Mon Feb 06 18:38:36 2023 +0400 @@ -421,7 +421,7 @@ $ hg evolve --continue evolving 4:e568fd1029bb "added c e" - file 'd' was deleted in other [other] but was modified in local [local]. + file 'd' was deleted in other but was modified in local. You can use (c)hanged version, (d)elete, or leave (u)nresolved. What do you want to do? u 1 files updated, 0 files merged, 0 files removed, 1 files unresolved diff -r 19573de6a691 -r 9a41c3c293ae tests/test-evolve-templates.t --- a/tests/test-evolve-templates.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-evolve-templates.t Mon Feb 06 18:38:36 2023 +0400 @@ -1080,7 +1080,7 @@ 2 new obsolescence markers obsoleted 1 changesets new changesets 7a230b46bf61 (1 drafts) - (run 'hg heads' to see heads) + (run 'hg heads' to see heads, 'hg merge' to merge) working directory parent is obsolete! (471f378eab4c) (use 'hg evolve' to update to its successor: 7a230b46bf61) $ hg log --hidden -G diff -r 19573de6a691 -r 9a41c3c293ae tests/test-fold.t --- a/tests/test-fold.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-fold.t Mon Feb 06 18:38:36 2023 +0400 @@ -146,7 +146,7 @@ $ hg fold --from 6 # want to run hg fold 6 abort: hidden revision '6' was rewritten as: 198b5c405d01 (use --hidden to access hidden revisions) - [10] + [255] $ hg log -G @ 11 - 198b5c405d01 r5 [debugbuilddag] (draft) bm1 diff -r 19573de6a691 -r 9a41c3c293ae tests/test-obsolete.t --- a/tests/test-obsolete.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-obsolete.t Mon Feb 06 18:38:36 2023 +0400 @@ -134,7 +134,6 @@ (use 'hg evolve' to update to its successor: 725c380fe99b) $ mkcommit d # 5 (on 3) 1 new orphan changesets - created new head $ qlog -r 'obsolete()' 3 - 0d3f46688ccc diff -r 19573de6a691 -r 9a41c3c293ae tests/test-sharing.t --- a/tests/test-sharing.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-sharing.t Mon Feb 06 18:38:36 2023 +0400 @@ -104,6 +104,8 @@ obsoleted 1 changesets new changesets 522d503432a2 (1 drafts) 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + updated to "522d503432a2: fix bug 37" + 1 other heads for branch "default" Figure SG03 $ hg -R ../dev-repo shortlog --hidden -G @@ -136,6 +138,8 @@ $ cd ../test-repo $ hg update 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + updated to "7b49f864d655: fix bug 37" + 1 other heads for branch "default" $ hg shortlog --hidden -G @ 4:7b49 draft fix bug 37 | diff -r 19573de6a691 -r 9a41c3c293ae tests/test-topic-push.t --- a/tests/test-topic-push.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-topic-push.t Mon Feb 06 18:38:36 2023 +0400 @@ -211,10 +211,10 @@ $ hg outgoing draft --topic nonexistent abort: topic 'nonexistent' does not exist - [10] + [255] $ hg push draft --topic nonexistent abort: topic 'nonexistent' does not exist - [10] + [255] $ hg up babar switching to topic babar diff -r 19573de6a691 -r 9a41c3c293ae tests/test-topic.t --- a/tests/test-topic.t Mon Feb 06 18:38:31 2023 +0400 +++ b/tests/test-topic.t Mon Feb 06 18:38:36 2023 +0400 @@ -666,7 +666,7 @@ $ hg pull ../pinky -r narf pulling from ../pinky abort: unknown revision 'narf' - [10] + [255] $ hg pull ../pinky -r default pulling from ../pinky searching for changes