diff tests/test-namespaces.t @ 6239:8861e33f3bb2

topic: setting current repo namespace with debug-namespace
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 04 May 2022 15:38:24 +0400
parents 6bbd16579f0f
children 2686ecc90791
line wrap: on
line diff
--- a/tests/test-namespaces.t	Tue May 03 21:45:59 2022 +0400
+++ b/tests/test-namespaces.t	Wed May 04 15:38:24 2022 +0400
@@ -5,9 +5,21 @@
   $ hg init repo
   $ cd repo
 
+  $ hg debug-topic-namespace space-name
+  marked working directory as topic namespace: space-name
+  $ hg debug-topic-namespaces
+  space-name
+
+  $ hg branches
+
+  $ hg debug-topic-namespace --clear
   $ hg debug-topic-namespaces
   default
 
+  $ hg debugtopicnamespace --clear nonsense
+  abort: cannot use --clear when setting a topic namespace
+  [255]
+
 Parsing
 
   $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n'