diff tests/test-topic-prev-next.t @ 5947:4cf020149c4a mercurial-4.8

test-compat: merge mercurial-4.9 into mercurial-4.8
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 28 May 2021 00:12:32 +0800
parents 3571685e2aa2
children 9da0114a8a02
line wrap: on
line diff
--- a/tests/test-topic-prev-next.t	Sun Apr 25 13:18:03 2021 +0800
+++ b/tests/test-topic-prev-next.t	Fri May 28 00:12:32 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