diff tests/test-namespaces.t @ 6240:2686ecc90791

topic: store topic namespace in commit extras
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 04 May 2022 15:53:57 +0400
parents 8861e33f3bb2
children 85abf58c3d8c
line wrap: on
line diff
--- a/tests/test-namespaces.t	Wed May 04 15:38:24 2022 +0400
+++ b/tests/test-namespaces.t	Wed May 04 15:53:57 2022 +0400
@@ -20,6 +20,19 @@
   abort: cannot use --clear when setting a topic namespace
   [255]
 
+  $ hg branch stable
+  marked working directory as branch stable
+  (branches are permanent and global, did you want a bookmark?)
+  $ hg debug-topic-namespace alice
+  marked working directory as topic namespace: alice
+  $ hg topic feature
+  marked working directory as topic: feature
+  $ echo a > a
+  $ hg ci -qAm a
+
+  $ hg debug-topic-namespaces
+  alice
+
 Parsing
 
   $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n'