Mercurial > evolve
diff tests/test-namespaces.t @ 6759:bdf99d434b06 mercurial-5.9
test-compat: merge mercurial-6.0 into mercurial-5.9
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 11 Apr 2024 12:05:06 -0300 |
parents | 752201811d5a 107c5af631a7 |
children | 3228f1e92466 |
line wrap: on
line diff
--- a/tests/test-namespaces.t Fri Mar 01 02:02:49 2024 -0300 +++ b/tests/test-namespaces.t Thu Apr 11 12:05:06 2024 -0300 @@ -286,6 +286,58 @@ abort: topic namespace 'nonsense' does not exist [255] +Debug command related to the default/empty topic namespace + + $ hg debug-topic-namespace --clear + + $ echo none > none + $ hg ci -qAm 'tns=none' \ + > --config extensions.topic=! \ + > --config extensions.commitextras= \ + > --extra topic-namespace=none + + + $ echo default > default + $ hg ci -qAm 'tns=default' \ + > --config extensions.topic=! \ + > --config extensions.commitextras= \ + > --extra topic-namespace=default + + $ hg debug-default-topic-namespace \ + > --debug \ + > | grep extra + extra: branch=stable + extra: topic-namespace=none + + $ hg debug-default-topic-namespace \ + > --no-none \ + > --default \ + > --debug \ + > | grep extra + extra: branch=stable + extra: topic-namespace=default + + $ hg debug-default-topic-namespace \ + > --default \ + > -T '{rev}:{node|short} {join(extras, " ")}\n' + 4:29a2d0acd473 branch=stable topic-namespace=none + 5:16d6061fce0c branch=stable topic-namespace=default + + $ hg debug-default-topic-namespace --none --default --clear + + $ hg debug-default-topic-namespace --none --default + + $ hg evolve --config extensions.evolve= --list + + $ hg evolve --config extensions.evolve= --any + update:[7] tns=default + 0 files updated, 0 files merged, 0 files removed, 0 files unresolved + working directory is now at 38c9ea9d27a7 + + $ hg debug-default-topic-namespace --none --default + + $ hg verify --quiet + Parsing $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n'