diff tests/test-evolve-topic.t @ 3362:92b414710d2e stable

prev: jump to parent's successor if parent is obsolete and topic is involved `hg stack` shows a linear chain of commits even when they are not linear chain and some changesets are obsoleted and have successors as separate head. This is very nice to have a post evolution view of the stack. However when `hg prev` is run on an unstable changeset whose parent is obsolete and does not topic but parents successor has the topic, it shows no parent on the topic. This patch makes `hg prev` update to parent's successor and make things follow the stack order.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 28 Dec 2017 03:12:54 +0530
parents 1439021d22f9
children 1cb549cd6236
line wrap: on
line diff
--- a/tests/test-evolve-topic.t	Thu Dec 28 03:08:22 2017 +0530
+++ b/tests/test-evolve-topic.t	Thu Dec 28 03:12:54 2017 +0530
@@ -265,6 +265,5 @@
   t0^ add eee (base)
 
   $ hg prev
-  no parent in topic "bar"
-  (do you want --no-topic)
-  [1]
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  [18] add fff