comparison 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
comparison
equal deleted inserted replaced
3361:1439021d22f9 3362:92b414710d2e
263 t2$ add ggg (current unstable) 263 t2$ add ggg (current unstable)
264 t1: add fff 264 t1: add fff
265 t0^ add eee (base) 265 t0^ add eee (base)
266 266
267 $ hg prev 267 $ hg prev
268 no parent in topic "bar" 268 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
269 (do you want --no-topic) 269 [18] add fff
270 [1]