Mercurial > evolve
changeset 5291:258c0a99c5b0
tests: update section headers and comments in obslog-related tests
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 05 May 2020 16:54:24 +0800 |
parents | 7e93d9db1d1a |
children | 9351e6c22e74 |
files | tests/test-evolve-cycles.t tests/test-evolve-obshistory-amend-then-fold.t tests/test-evolve-obshistory-amend.t tests/test-evolve-obshistory-complex.t tests/test-evolve-obshistory-content-divergent.t tests/test-evolve-obshistory-fold.t tests/test-evolve-obshistory-lots-of-splits.t tests/test-evolve-obshistory-phase-divergent.t tests/test-evolve-obshistory-prune.t tests/test-evolve-obshistory-split.t tests/test-evolve-obshistory.t |
diffstat | 11 files changed, 45 insertions(+), 58 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-evolve-cycles.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-cycles.t Tue May 05 16:54:24 2020 +0800 @@ -85,7 +85,7 @@ Actual test ----------- -Check that debugobshistory never crash on a cycle +Check that obslog never crashes on a cycle $ hg obslog "desc(A)" --hidden @ 2a34000d3544 (1) A @@ -120,7 +120,7 @@ | rewritten(description, parent, content) as a8df460dbbfe using prune by test (Thu Jan 01 00:00:00 1970 +0000) | -Check that all option don't crash on a cycle either +Check that all option doesn't crash on a cycle either $ hg obslog "desc(C)" --hidden --all @ 2a34000d3544 (1) A @@ -248,7 +248,7 @@ Actual test ----------- -Check that debugobshistory never crash on a cycle +Check that obslog never crashes on a cycle $ hg obslog "desc(D)" --hidden x 0da815c333f6 (5) E @@ -269,7 +269,7 @@ x | c473644ee0e9 (2) B | | rewritten(description, parent, content) as a8df460dbbfe using prune by test (Thu Jan 01 00:00:00 1970 +0000) | | -Check that all option don't crash either on a cycle +Check that all option doesn't crash on a cycle either $ hg obslog --all --hidden "desc(F)" x 0da815c333f6 (5) E | rewritten(description, parent, content) as d9f908fde1a1 using prune by test (Thu Jan 01 00:00:00 1970 +0000)
--- a/tests/test-evolve-obshistory-amend-then-fold.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-amend-then-fold.t Tue May 05 16:54:24 2020 +0800 @@ -1,5 +1,4 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============ @@ -80,7 +79,7 @@ Actual test ----------- -Check that debugobshistory on head show a coherent graph +Check that obslog on head shows a coherent graph $ hg obslog eb5a0daa2192 --patch @ eb5a0daa2192 (4) C0 |\ @@ -114,7 +113,7 @@ +B1 -Check that obslog on ROOT with all option show everything +Check that obslog on A0 with all option shows everything $ hg obslog 1 --hidden --all --patch @ eb5a0daa2192 (4) C0 |\
--- a/tests/test-evolve-obshistory-amend.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-amend.t Tue May 05 16:54:24 2020 +0800 @@ -1,12 +1,10 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============ $ . $TESTDIR/testlib/obshistory_setup.sh - Test output on amended commit =============================
--- a/tests/test-evolve-obshistory-complex.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-complex.t Tue May 05 16:54:24 2020 +0800 @@ -1,3 +1,5 @@ +Testing obslog and other commands accessing obsolete revisions. + Global setup ============ @@ -387,7 +389,7 @@ Actual Test =========== -Obslog should show a subset of the obs history, this test check that the +Obslog should show a subset of the obs history, this test checks that the walking algorithm works no matter the level of successors + precursors $ hg obslog 12
--- a/tests/test-evolve-obshistory-content-divergent.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-content-divergent.t Tue May 05 16:54:24 2020 +0800 @@ -1,5 +1,4 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============ @@ -79,7 +78,7 @@ Actual test ----------- -Check that debugobshistory on the divergent revision show both destinations +Check that obslog on the divergent revision shows both destinations $ hg obslog --hidden 471f378eab4c --patch x 471f378eab4c (1) A0 reworded(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) @@ -175,8 +174,8 @@ "shortdescription": "A0" } ] -Check that debugobshistory on the first diverged revision show the revision -and the diverent one +Check that obslog on the first diverged revision shows the revision and the +divergent one $ hg obslog fdf9bde5129a --patch * fdf9bde5129a (2) A1 | @@ -199,7 +198,7 @@ -Check that all option show all of them +Check that all option shows all of them $ hg obslog fdf9bde5129a -a --patch @ 65b757b745b9 (3) A2 | @@ -223,8 +222,8 @@ +A1 -Check that debugobshistory on the second diverged revision show the revision -and the diverent one +Check that obslog on the second diverged revision shows the revision and the +divergent one $ hg obslog 65b757b745b9 --patch @ 65b757b745b9 (3) A2 | @@ -246,7 +245,7 @@ +A1 -Check that all option show all of them +Check that all option shows all of them $ hg obslog 65b757b745b9 -a --patch @ 65b757b745b9 (3) A2 | @@ -270,8 +269,7 @@ +A1 -Check that debugobshistory on the both diverged revision show a coherent -graph +Check that obslog on the both diverged revision shows a coherent graph $ hg obslog '65b757b745b9+fdf9bde5129a' --patch @ 65b757b745b9 (3) A2 |
--- a/tests/test-evolve-obshistory-fold.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-fold.t Tue May 05 16:54:24 2020 +0800 @@ -1,5 +1,4 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============ @@ -69,8 +68,8 @@ Check output of the client -------------------------- -Check that debugobshistory on the first folded revision show only -the revision with the target +Check that obslog on the first folded revision shows only the revision with the +target $ hg obslog --hidden 471f378eab4c --patch x 471f378eab4c (1) A0 folded(description, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000) @@ -112,8 +111,8 @@ +B0 -Check that debugobshistory on the second folded revision show only -the revision with the target +Check that obslog on the second folded revision shows only the revision with +the target $ hg obslog --hidden 0dec01379d3b --patch x 0dec01379d3b (2) B0 folded(description, parent, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000) @@ -143,8 +142,7 @@ +B0 -Check that debugobshistory on the successor revision show a coherent -graph +Check that obslog on the successor revision shows a coherent graph $ hg obslog eb5a0daa2192 --patch @ eb5a0daa2192 (3) C0 |\
--- a/tests/test-evolve-obshistory-lots-of-splits.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-lots-of-splits.t Tue May 05 16:54:24 2020 +0800 @@ -1,5 +1,4 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============ @@ -272,7 +271,7 @@ "shortdescription": "A0" } ] -Check that debugobshistory on all heads show a coherent graph +Check that obslog on all heads shows a coherent graph $ hg obslog 2::5 --patch o 1ae8bc733a14 (4) A0 |
--- a/tests/test-evolve-obshistory-phase-divergent.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-phase-divergent.t Tue May 05 16:54:24 2020 +0800 @@ -1,5 +1,4 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============ @@ -7,7 +6,7 @@ $ . $TESTDIR/testlib/obshistory_setup.sh Test output with phase-divergence -=================================== +================================= Test setup ---------- @@ -66,7 +65,7 @@ Actual test ----------- -Check that debugobshistory on the divergent revision show both destinations +Check that obslog on the public revision shows both public (diverged) and draft (divergent) revisions $ hg obslog --hidden 471f378eab4c --patch @ 471f378eab4c (1) A0 reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000) @@ -123,8 +122,7 @@ "shortdescription": "A0" } ] -Check that debugobshistory on the first diverged revision show the revision -and the diverent one +Check that obslog on the draft (divergent) revision also shows public (diverged) revision $ hg obslog fdf9bde5129a --patch * fdf9bde5129a (2) A1 | @@ -139,7 +137,7 @@ -Check that all option show all of them +Check that all option shows all of them $ hg obslog fdf9bde5129a -a --patch * fdf9bde5129a (2) A1 | @@ -153,8 +151,7 @@ +A1 -Check that debugobshistory on the both diverged revision show a coherent -graph +Check that obslog on the both draft (divergent) and public (diverged) revisions shows a coherent graph $ hg obslog 'fdf9bde5129a+fdf9bde5129a' --patch * fdf9bde5129a (2) A1 |
--- a/tests/test-evolve-obshistory-prune.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-prune.t Tue May 05 16:54:24 2020 +0800 @@ -1,5 +1,4 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============
--- a/tests/test-evolve-obshistory-split.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory-split.t Tue May 05 16:54:24 2020 +0800 @@ -1,5 +1,4 @@ -This test file test the various messages when accessing obsolete -revisions. +Testing obslog and other commands accessing obsolete revisions. Global setup ============ @@ -103,7 +102,7 @@ Check output on the client side ------------------------------- -Check that debugobshistory on split commit show both targets +Check that obslog on split commit shows both targets $ hg obslog 471597cad322 --hidden --patch x 471597cad322 (1) A0 split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000) @@ -145,8 +144,8 @@ "shortdescription": "A0" } ] -Check that debugobshistory on the first successor after split show -the revision plus the split one +Check that obslog on the first successor after split shows the revision plus +the split one $ hg obslog 337fec4d2edc --patch o 337fec4d2edc (2) A0 | @@ -155,7 +154,7 @@ note: testing split (No patch available, too many successors (2)) -With the all option, it should show the three changesets +With the all option, it should show all three changesets $ hg obslog --all 337fec4d2edc --patch o 337fec4d2edc (2) A0 | @@ -166,8 +165,8 @@ note: testing split (No patch available, too many successors (2)) -Check that debugobshistory on the second successor after split show -the revision plus the split one +Check that obslog on the second successor after split shows the revision plus +the split one $ hg obslog f257fde29c7a --patch @ f257fde29c7a (3) A0 | @@ -176,7 +175,7 @@ note: testing split (No patch available, too many successors (2)) -With the all option, it should show the three changesets +With the all option, it should show all three changesets $ hg obslog f257fde29c7a --all --patch o 337fec4d2edc (2) A0 | @@ -198,8 +197,7 @@ note: testing split (No patch available, too many successors (2)) -Check that debugobshistory on both successors after split show -a coherent graph +Check that obslog on both successors after split shows a coherent graph $ hg obslog 'f257fde29c7a+337fec4d2edc' --patch o 337fec4d2edc (2) A0 |
--- a/tests/test-evolve-obshistory.t Tue May 05 16:52:59 2020 +0800 +++ b/tests/test-evolve-obshistory.t Tue May 05 16:54:24 2020 +0800 @@ -130,8 +130,7 @@ (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 debugobshistory works with markers pointing to missing local -changectx +Check that obslog works with markers pointing to missing local changectx $ hg obslog 7a230b46bf61 --patch o 7a230b46bf61 (2) A2 |