diff tests/test-topic-prev-next.t @ 5909:3571685e2aa2 stable

next: remove duplicated targets when updating from an unstable changeset
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 02 May 2021 22:06:11 +0800
parents 21a8f0336f26
children 9da0114a8a02
line wrap: on
line diff
--- a/tests/test-topic-prev-next.t	Sun Apr 25 23:50:21 2021 +0800
+++ b/tests/test-topic-prev-next.t	Sun May 02 22:06:11 2021 +0800
@@ -133,8 +133,23 @@
   o  0 [] root
   
 
+Simply walking on unstable changesets should work as expected
+
+  $ hg up 'desc("B2")'
+  switching to topic B
+  3 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg prev
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  [s1] B1
+  $ hg next
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  [s2] B2
+
 B1 shouldn't be considered a target, orphan or not
 
+  $ hg up 'desc("A2")'
+  switching to topic A
+  1 files updated, 0 files merged, 2 files removed, 0 files unresolved
   $ hg next
   move:[s3] A3
   atop:[s2] A2