Mercurial > evolve
changeset 6481:38f6e7c0a743
stable-sort: rename `debugstablesort` into `debug::evo-ext-stable-sort`
As similar commands are making their way into core, we need the evolution one to
be flagged as such.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Mar 2023 02:42:37 +0100 |
parents | 94d459a37494 |
children | 530c7eaa9d57 |
files | hgext3rd/evolve/stablesort.py tests/test-cache-corruption.t tests/test-stablesort-branchpoint-criss-cross.t tests/test-stablesort-branchpoint.t tests/test-stablesort-criss-cross.t tests/test-stablesort.t |
diffstat | 6 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/stablesort.py Fri Mar 24 13:26:15 2023 +0000 +++ b/hgext3rd/evolve/stablesort.py Wed Mar 01 02:42:37 2023 +0100 @@ -293,7 +293,7 @@ return key @eh.command( - b'debugstablesort', + b'debug::evo-ext-stable-sort', [ (b'r', b'rev', [], b'heads to start from'), (b'', b'method', b'branchpoint', b"method used for sorting, one of: " @@ -326,7 +326,7 @@ displayer.close() @eh.command( - b'debugstablesortcache', + b'debug::evo-ext-stable-sort-cache', [] + commands.formatteropts, _(b'')) def debugstablesortcache(ui, repo, **opts):
--- a/tests/test-cache-corruption.t Fri Mar 24 13:26:15 2023 +0000 +++ b/tests/test-cache-corruption.t Wed Mar 01 02:42:37 2023 +0100 @@ -152,7 +152,7 @@ 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0030: 00 00 00 00 |....| - $ hg debugstablesortcache --debug + $ hg debug::evo-ext-stable-sort-cache --debug number of revisions: 3 number of merge: 0 number of jumps: 0 @@ -164,7 +164,7 @@ 0010: 49 c6 55 ea 65 b2 95 e3 00 00 00 0c 00 00 00 00 |I.U.e...........| 0020: 00 00 00 00 00 00 00 00 |........| - $ hg debugstablesortcache --debug + $ hg debug::evo-ext-stable-sort-cache --debug number of revisions: 3 stablesortcache file seems to be corrupted, it will be rebuilt from scratch number of merge: 0 @@ -177,7 +177,7 @@ 0010: 49 c6 55 ea 65 b2 95 e3 00 00 00 18 00 00 00 00 |I.U.e...........| 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| - $ hg debugstablesortcache --debug + $ hg debug::evo-ext-stable-sort-cache --debug number of revisions: 3 stablesortcache file seems to be corrupted, it will be rebuilt from scratch number of merge: 0 @@ -305,7 +305,7 @@ 0040: 00 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 |................| 0050: 00 00 00 00 |....| - $ hg debugstablesortcache --debug + $ hg debug::evo-ext-stable-sort-cache --debug number of revisions: 4 number of merge: 1 number of jumps: 1 @@ -324,7 +324,7 @@ 0020: 00 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 |................| 0030: 01 00 00 00 02 00 00 00 |........| - $ hg debugstablesortcache --debug + $ hg debug::evo-ext-stable-sort-cache --debug number of revisions: 4 stablesortcache file seems to be corrupted, it will be rebuilt from scratch number of merge: 1 @@ -345,7 +345,7 @@ 0030: 00 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 |................| 0040: 00 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 |................| - $ hg debugstablesortcache --debug + $ hg debug::evo-ext-stable-sort-cache --debug number of revisions: 4 stablesortcache file seems to be corrupted, it will be rebuilt from scratch number of merge: 1
--- a/tests/test-stablesort-branchpoint-criss-cross.t Fri Mar 24 13:26:15 2023 +0000 +++ b/tests/test-stablesort-branchpoint-criss-cross.t Wed Mar 01 02:42:37 2023 +0100 @@ -9,7 +9,7 @@ > [ui] > logtemplate = "{rev} {node|short} {desc} {tags}\n" > [alias] - > showsort = debugstablesort --template="{node|short}\n" --method branchpoint + > showsort = debug::evo-ext-stable-sort --template="{node|short}\n" --method branchpoint > EOF $ checktopo () {
--- a/tests/test-stablesort-branchpoint.t Fri Mar 24 13:26:15 2023 +0000 +++ b/tests/test-stablesort-branchpoint.t Wed Mar 01 02:42:37 2023 +0100 @@ -9,7 +9,7 @@ > [ui] > logtemplate = "{rev} {node|short} {desc} {tags}\n" > [alias] - > showsort = debugstablesort --template="{node|short}\n" --method branchpoint + > showsort = debug::evo-ext-stable-sort --template="{node|short}\n" --method branchpoint > EOF $ checktopo () {
--- a/tests/test-stablesort-criss-cross.t Fri Mar 24 13:26:15 2023 +0000 +++ b/tests/test-stablesort-criss-cross.t Wed Mar 01 02:42:37 2023 +0100 @@ -9,7 +9,7 @@ > [ui] > logtemplate = "{rev} {node|short} {desc} {tags}\n" > [alias] - > showsort = debugstablesort --template="{node|short}\n" --method headondisk + > showsort = debug::evo-ext-stable-sort --template="{node|short}\n" --method headondisk > EOF $ checktopo () {
--- a/tests/test-stablesort.t Fri Mar 24 13:26:15 2023 +0000 +++ b/tests/test-stablesort.t Wed Mar 01 02:42:37 2023 +0100 @@ -9,8 +9,8 @@ > [ui] > logtemplate = "{rev} {node|short} {desc} {tags}\n" > [alias] - > showsort = debugstablesort --template="{node|short}\n" --method basic-mergepoint - > showsorthead = debugstablesort --template="{node|short}\n" --method headondisk + > showsort = debug::evo-ext-stable-sort --template="{node|short}\n" --method basic-mergepoint + > showsorthead = debug::evo-ext-stable-sort --template="{node|short}\n" --method headondisk > EOF $ checktopo () {