changeset 6661:b33bf56ce558 stable

tests: show .hg/topic-namespace in a couple of places in test-namespaces.t
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 12 Jan 2024 14:47:24 -0300
parents 5e6fa2dd796a
children 26cc60ad0981
files tests/test-namespaces.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-namespaces.t	Thu Jan 11 13:53:59 2024 -0300
+++ b/tests/test-namespaces.t	Fri Jan 12 14:47:24 2024 -0300
@@ -11,6 +11,8 @@
   marked working directory as topic namespace: space-name
   $ hg debug-topic-namespaces
   space-name
+  $ cat .hg/topic-namespace
+  space-name (no-eol)
 
   $ hg log -r 'wdir()' -T '{topic_namespace}\n'
   none
@@ -34,6 +36,8 @@
 Non-ascii topic namespace name
 
   $ hg debug-topic-namespace --clear
+  $ test -f .hg/topic-namespace
+  [1]
   $ hg --encoding utf-8 debug-topic-namespace æ
   marked working directory as topic namespace: \xc3\xa6 (esc)
   $ hg --encoding utf-8 debug-topic-namespaces
@@ -42,6 +46,8 @@
   ? (esc)
   $ hg --encoding latin1 debug-topic-namespaces
   \xe6 (esc)
+  $ cat .hg/topic-namespace
+  \xc3\xa6 (no-eol) (esc)
 
   $ hg --encoding utf-8 debug-topic-namespace ©
   abort: invalid topic namespace name: '\xc2\xa9' (esc)
@@ -123,6 +129,8 @@
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg debug-topic-namespace
   alice
+  $ cat .hg/topic-namespace
+  alice (no-eol)
   $ hg topics
    * feature (1 changesets)
   $ cat .hg/topic