diff tests/test-namespaces.t @ 6827:eb8a648d90de

tests: demonstrate that using FQBN sometimes works with hg up
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 03 Nov 2023 15:11:06 -0300
parents 72d311b8258d
children 90f867d5be22
line wrap: on
line diff
--- a/tests/test-namespaces.t	Sun Feb 25 17:53:00 2024 -0300
+++ b/tests/test-namespaces.t	Fri Nov 03 15:11:06 2023 -0300
@@ -338,6 +338,24 @@
 
   $ hg verify --quiet
 
+Using fully qualified branch names
+
+  $ hg branches
+  stable                         7:38c9ea9d27a7
+  stable//mynamespace/mytopic    1:aa564142ac0b (inactive)
+  stable//alice/feature          0:69c7dbf6acd1 (inactive)
+
+  $ hg up stable//mynamespace/mytopic
+  switching to topic-namespace mynamespace
+  switching to topic mytopic
+  1 files updated, 0 files merged, 2 files removed, 0 files unresolved
+  $ hg up stable
+  3 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg up stable//alice/feature
+  switching to topic-namespace alice
+  switching to topic feature
+  0 files updated, 0 files merged, 3 files removed, 0 files unresolved
+
 Parsing
 
   $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n'