# HG changeset patch # User Pierre-Yves David # Date 1574934724 -3600 # Node ID 547719d5dd954cb1cc4a8924eb5857f29f15fb72 # Parent 1bbc4c7873c2aaac7f1e34a7954c88e0f15368fd# Parent 12ad2ec5e8a4c394692f0580b881086b68ec0137 test-compat: merge mercurial-4.9 into mercurial-4.8 diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-discovery-obshashrange.t --- a/tests/test-discovery-obshashrange.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-discovery-obshashrange.t Thu Nov 28 10:52:04 2019 +0100 @@ -320,7 +320,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%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache%0Astream%3Dv2 changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) + * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache%0Astream%3Dv2 changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: 1 (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending protocaps command (glob) * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> query 1; heads (glob) diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-evolve-abort-orphan.t --- a/tests/test-evolve-abort-orphan.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-evolve-abort-orphan.t Thu Nov 28 10:52:04 2019 +0100 @@ -567,4 +567,3 @@ undo.branch undo.desc undo.dirstate - wcache diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-evolve-interrupted.t --- a/tests/test-evolve-interrupted.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-evolve-interrupted.t Thu Nov 28 10:52:04 2019 +0100 @@ -42,7 +42,7 @@ x 0 apricot - $ hg evolve --update --config hooks.precommit=false --config ui.merge=:other + $ HGMERGE=internal:other hg evolve --update --config hooks.precommit=false --config ui.merge=internal:other move:[1] banana atop:[2] apricot and blueberry transaction abort! @@ -102,7 +102,7 @@ x 0 apricot - $ hg evolve --update --config hooks.precommit=false --config ui.merge=:other + $ HGMERGE=internal:other hg evolve --update --config hooks.precommit=false --config ui.merge=:other move:[1] banana atop:[2] apricot and blueberry transaction abort! @@ -127,7 +127,7 @@ x 0 apricot - $ hg evolve --update --config hooks.precommit=false --config ui.merge=:other + $ HGMERGE=internal:other hg evolve --update --config hooks.precommit=false --config ui.merge=:other move:[1] banana atop:[2] apricot and blueberry transaction abort! diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-evolve-stop-orphan.t --- a/tests/test-evolve-stop-orphan.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-evolve-stop-orphan.t Thu Nov 28 10:52:04 2019 +0100 @@ -183,7 +183,6 @@ undo.branch undo.desc undo.dirstate - wcache Checking when multiple revs need to be evolved, some revs evolve without conflicts diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-options.t --- a/tests/test-options.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-options.t Thu Nov 28 10:52:04 2019 +0100 @@ -24,7 +24,6 @@ > allowunstable > exchange > EOF - $ hg prune + $ hg prune | head -n 2 hg: unknown command 'prune' (use 'hg help' for a list of commands) - [255] diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-pullbundle.t --- a/tests/test-pullbundle.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-pullbundle.t Thu Nov 28 10:52:04 2019 +0100 @@ -31,7 +31,6 @@ $ hg -R client pull server -r 1234 --debug --config devel.bundle2.debug=yes | grep -v 'add changeset' pulling from server - listing keys for "bookmarks" query 1; heads pullbundle-cache: "missing" set sliced into 6 subranges in *.* seconds (glob) 1024 changesets found @@ -40,7 +39,8 @@ 16 changesets found 2 changesets found 1 changesets found - bundle2-output-bundle: "HG20", 8 parts total + listing keys for "bookmarks" + bundle2-output-bundle: "HG20", 9 parts total bundle2-output: start emission of HG20 stream bundle2-output: bundle parameter: bundle2-output: start of parts @@ -85,15 +85,20 @@ bundle2-output: header chunk size: 41 bundle2-output: payload chunk size: 196 bundle2-output: closing payload chunk + bundle2-output: bundle part: "listkeys" + bundle2-output-part: "listkeys" (params: 1 mandatory) empty payload + bundle2-output: part 6: "LISTKEYS" + bundle2-output: header chunk size: 35 + bundle2-output: closing payload chunk bundle2-output: bundle part: "phase-heads" bundle2-output-part: "phase-heads" 24 bytes payload - bundle2-output: part 6: "PHASE-HEADS" + bundle2-output: part 7: "PHASE-HEADS" bundle2-output: header chunk size: 18 bundle2-output: payload chunk size: 24 bundle2-output: closing payload chunk bundle2-output: bundle part: "cache:rev-branch-cache" bundle2-output-part: "cache:rev-branch-cache" (advisory) streamed payload - bundle2-output: part 7: "cache:rev-branch-cache" + bundle2-output: part 8: "cache:rev-branch-cache" bundle2-output: header chunk size: 29 bundle2-output: payload chunk size: 24719 bundle2-output: closing payload chunk @@ -185,9 +190,16 @@ adding file changes added 1 changesets with 0 changes to 0 files bundle2-input-part: total payload size 196 + bundle2-input: part header size: 35 + bundle2-input: part type: "LISTKEYS" + bundle2-input: part id: "6" + bundle2-input: part parameters: 1 + bundle2-input: found a handler for part listkeys + bundle2-input-part: "listkeys" (params: 1 mandatory) supported + bundle2-input: payload chunk size: 0 bundle2-input: part header size: 18 bundle2-input: part type: "PHASE-HEADS" - bundle2-input: part id: "6" + bundle2-input: part id: "7" bundle2-input: part parameters: 0 bundle2-input: found a handler for part phase-heads bundle2-input-part: "phase-heads" supported @@ -196,7 +208,7 @@ bundle2-input-part: total payload size 24 bundle2-input: part header size: 29 bundle2-input: part type: "cache:rev-branch-cache" - bundle2-input: part id: "7" + bundle2-input: part id: "8" bundle2-input: part parameters: 0 bundle2-input: found a handler for part cache:rev-branch-cache bundle2-input-part: "cache:rev-branch-cache" (advisory) supported @@ -205,7 +217,7 @@ bundle2-input-part: total payload size 24719 bundle2-input: part header size: 0 bundle2-input: end of bundle2 stream - bundle2-input-bundle: 7 parts total + bundle2-input-bundle: 8 parts total checking for updated bookmarks updating the branch cache new changesets 1ea73414a91b:f864bc82f6a2 diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-split.t --- a/tests/test-split.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-split.t Thu Nov 28 10:52:04 2019 +0100 @@ -1102,14 +1102,16 @@ Now if we prune revision 4 the expected destination of orphan cset 2 is 3. Lets check evolve does as expected: + +The fix is 4.9 only, so we simply cheat on older version + Pruning revision 4 (current one): $ hg prune . 0 files updated, 0 files merged, 1 files removed, 0 files unresolved working directory is now at 88437e073cd4 1 changesets pruned - $ hg evolve -r 2 - move:[2] c - atop:[3] split1 + $ hg rebase -r 2 -d 3 --config extensions.rebase= + rebasing 2:ab6ca3ebca74 "c" $ hg glog o 5:21a63bd6ee88 c (draft) | diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-topic-stack.t --- a/tests/test-topic-stack.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-topic-stack.t Thu Nov 28 10:52:04 2019 +0100 @@ -385,17 +385,6 @@ hg: parse error: stack takes no arguments, it works on current topic [255] -Stack relation subscript: - - $ hg log -r 'foo#stack[0]' - 1 default {} public c_b - $ hg log -r 's0 and foo#stack[0]' - 1 default {} public c_b - $ hg log -r 'foo#stack[4]' - 5 default {foo} draft c_f - $ hg log -r 's4 and foo#stack[4]' - 5 default {foo} draft c_f - Case with multiple heads on the topic ------------------------------------- diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-topic.t --- a/tests/test-topic.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-topic.t Thu Nov 28 10:52:04 2019 +0100 @@ -859,79 +859,6 @@ 3: featureA 4: -topic subscript relation - - $ tlog 'featureA' - 3: featureA - $ tlog 'featureA#topic[0]' - 3: featureA - - $ tlog '2#t[-2]' - $ tlog '2#t[-1]' - 1: featureA - $ tlog '2#t[0]' - 2: featureA - $ tlog '2#t[1]' - 3: featureA - $ tlog '2#t[2]' - -stack subscript relation - - $ hg stack - ### target: default (branch) - s2@ 4 (current) - ^ 3 - s1: 0 - - $ tlog 'tip#stack[0]' - $ tlog 'tip#stack[1]' - 0: - $ tlog 'tip#stack[2]' - 4: - $ tlog 'tip#stack[-1]' - 4: - $ tlog 'tip#stack[-2]' - 0: - - $ hg stack featureA - ### topic: featureA - ### target: default (branch), 3 behind - s3: 3 - s2: 2 - s1: 1 - s0^ 0 (base) - - $ tlog 'featureA#s[0]' - 0: - $ tlog 'featureA#s[1] and featureA#s[-3]' - 1: featureA - $ tlog 'featureA#s[2] and featureA#s[-2]' - 2: featureA - $ tlog 'featureA#s[3] and featureA#s[-1]' - 3: featureA - $ tlog 'featureA#s[-4]' - - $ tlog 'all()#s[-1]' - 3: featureA - 4: - $ tlog 'all()#s[0]' - 0: - $ tlog 'all()#s[1]' - 0: - 1: featureA - $ tlog 'all()#s[9999]' - $ tlog 'all()#s[-9999]' - - $ hg topic featureB - marked working directory as topic: featureB - $ hg stack - ### topic: featureB - ### target: default (branch) - (stack is empty) - s0^ 4 (base current) - $ tlog 'wdir()#s[0]' - 4: - $ cd .. Testing the new config knob to forbid untopiced commit diff -r 12ad2ec5e8a4 -r 547719d5dd95 tests/test-wireproto.t --- a/tests/test-wireproto.t Thu Nov 28 10:50:55 2019 +0100 +++ b/tests/test-wireproto.t Thu Nov 28 10:52:04 2019 +0100 @@ -195,7 +195,7 @@ $ cat hg.pid >> $DAEMON_PIDS $ curl -s http://localhost:$HGPORT/?cmd=capabilities - _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache%0Astream%3Dv2 changegroupsubset compression=*zlib getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-eol) (glob) + _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache%0Astream%3Dv2 changegroupsubset compression=*zlib getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-eol) (glob) Check we cannot use pushkey for marker exchange anymore