diff tests/test-namespaces.t @ 6749:107c5af631a7 stable

topic: make debug-default-topic-namespace --clear slightly smarter Now we don't have to run evolve too much after using this flag. Logic taken directly from the `hg topic` command when it changes topic of multiple changesets.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 29 Mar 2024 15:02:02 -0300
parents cd22d260d8cc
children bdf99d434b06 6adcc5c7c1f1
line wrap: on
line diff
--- a/tests/test-namespaces.t	Fri Mar 15 17:05:09 2024 -0300
+++ b/tests/test-namespaces.t	Fri Mar 29 15:02:02 2024 -0300
@@ -324,17 +324,15 @@
   5:16d6061fce0c branch=stable topic-namespace=default
 
   $ hg debug-default-topic-namespace --none --default --clear
-  1 new orphan changesets
 
   $ 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 68ef84f4b0a2
-  move:[7] tns=default
-  atop:[6] tns=none
-  working directory is now at ddeaa72064d4
+  working directory is now at 38c9ea9d27a7
 
   $ hg debug-default-topic-namespace --none --default