diff tests/test-namespaces-exchange.t @ 6562:703911d39f7a

tests: add `hg incoming` with a template that includes {fqbn} Now, with the help of the previous patch, we can see topic and topic namespace for each incoming commit. Using `hg incoming` makes it easier to test discovery logic because we don't need to create new commits for every situation or clean up after each pull.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 30 Sep 2023 13:59:18 -0300
parents 445240ccb701
children 835f0adf8e39
line wrap: on
line diff
--- a/tests/test-namespaces-exchange.t	Fri Sep 29 16:37:53 2023 -0300
+++ b/tests/test-namespaces-exchange.t	Sat Sep 30 13:59:18 2023 -0300
@@ -11,6 +11,8 @@
   > ssh = "$PYTHON" "$RUNTESTDIR/dummyssh"
   > [devel]
   > tns-report-transactions = pull
+  > [ui]
+  > logtemplate = "{rev}: {desc} {fqbn} ({phase})\n"
   > EOF
 
   $ hg init orig
@@ -68,6 +70,10 @@
   marked working directory as topic: apple
   $ hg ci -qAm apple
 
+  $ hg incoming -R ../clone
+  comparing with * (glob)
+  0: apple default//apple (draft)
+
   $ hg pull -R ../clone
   pulling from * (glob)
   requesting all changes
@@ -86,6 +92,12 @@
   $ hg topic banana
   $ hg ci -qAm 'banana'
 
+  $ hg incoming -R ../clone --config experimental.tns-default-pull-namespaces=foo
+  comparing with * (glob)
+  searching for changes
+  no changes found
+  [1]
+
   $ hg pull -R ../clone --config experimental.tns-default-pull-namespaces=foo
   pulling from * (glob)
   searching for changes
@@ -93,6 +105,11 @@
 
 this config option takes a list of values
 
+  $ hg incoming -R ../clone --config experimental.tns-default-pull-namespaces=foo,bob
+  comparing with * (glob)
+  searching for changes
+  1: banana default//bob/banana (draft)
+
   $ hg pull -R ../clone --config experimental.tns-default-pull-namespaces=foo,bob
   pulling from * (glob)
   searching for changes
@@ -111,6 +128,11 @@
   $ hg topic coconut
   $ hg ci -qAm 'coconut'
 
+  $ hg incoming -R ../clone --config experimental.tns-default-pull-namespaces=*
+  comparing with * (glob)
+  searching for changes
+  2: coconut default//charlie/coconut (draft)
+
   $ hg pull -R ../clone --config experimental.tns-default-pull-namespaces=*
   pulling from * (glob)
   searching for changes
@@ -129,6 +151,11 @@
   $ hg topic durian
   $ hg ci -qAm 'durian'
 
+  $ hg incoming -R ../clone
+  comparing with * (glob)
+  searching for changes
+  3: durian default//dave/durian (draft)
+
   $ hg pull -R ../clone
   pulling from * (glob)
   searching for changes