# HG changeset patch # User Pierre-Yves David # Date 1686676014 -7200 # Node ID b165d2bb58688d57fa0ac84b2bbb198fdad09695 # Parent 7ecb0f9cc7f3d1a6d5c045441445eaa36567ba59 topic: add better title to tns report tests diff -r 7ecb0f9cc7f3 -r b165d2bb5868 tests/test-namespaces-report.t --- a/tests/test-namespaces-report.t Fri Jun 09 11:02:13 2023 -0300 +++ b/tests/test-namespaces-report.t Tue Jun 13 19:06:54 2023 +0200 @@ -1,3 +1,7 @@ +============================================================ +Test detection of topic name space affected by a transaction +============================================================ + Reporting affected topic namespaces in transactions $ . "$TESTDIR/testlib/common.sh" @@ -15,6 +19,8 @@ $ hg init orig case 1: new changeset (draft with topic namespace) +================================================== + topic namespace of that changeset is reported $ hg clone orig case-1 -q @@ -50,6 +56,8 @@ $ cd .. case 2: obsmarker affecting known changeset +=========================================== + topic namespaces of both the precursor and the successor are affected $ hg clone orig case-2 -q @@ -74,6 +82,9 @@ $ cd .. +case 3: phase divergence +======================== + 3 phase divergence resolution can point to a thing but not affect it (probably not affected) $ hg clone orig case-3 -q @@ -110,7 +121,9 @@ $ cd .. -4 phase movement: publishing drafts +case 4: phase movement: publishing drafts +========================================= + topic namespaces of published changesets are affected $ hg clone orig case-4 -q @@ -125,8 +138,11 @@ $ cd .. -5 bookmark movement that affect tns (like putting a bookmark on obsolete changesets) -their topic namespaces reappear and are therefore reported +case 5: bookmark movement +========================= + +Bookmark movement that affect tns (like putting a bookmark on obsolete +changesets) their topic namespaces reappear and are therefore reported $ hg clone orig case-5 -q $ cd orig @@ -177,7 +193,11 @@ $ cd .. -6 phase movement: publishing secret changesets (that are known on the server) +case 6: phase movement: publishing secret changesets +==================================================== + +(that are known on the server) + topic namespaces of published changesets are affected $ hg clone orig case-6 -q @@ -206,7 +226,9 @@ $ cd .. -7 phase movement: secret->draft on the server +case 7: phase movement: secret->draft on the server +=================================================== + changeset becomes visible to peers, so its topic namespace is affected $ hg clone orig case-7 -q @@ -228,7 +250,8 @@ $ cd .. -99 pushing obsmarker for an unknown changeset +case: 99 pushing obsmarker for an unknown changeset +=================================================== doesn't affect any topic namespace, we report nothing $ hg clone orig case-99 -q