diff tests/test-evolve-topic.t @ 2745:b38112b43a27

prev: allow to update to 't0' from 't1' When on the first changeset of a topic, one can move back one changeset to end up on t0. The new working copy parent to not belong to the topic, but the topic is still active. The next commit will create a new root to the active topic. You can get the same result using `hg up t0`
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 14 Jul 2017 02:46:28 +0200
parents 7d86594cb829
children 66796d7b5415
line wrap: on
line diff
--- a/tests/test-evolve-topic.t	Fri Jul 14 02:42:33 2017 +0200
+++ b/tests/test-evolve-topic.t	Fri Jul 14 02:46:28 2017 +0200
@@ -209,10 +209,14 @@
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   [16] add ggg
   $ hg prev
+  preserving the current topic 'bar'
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  [15] add fff
+  $ hg prev
   no parent in topic "bar"
   (do you want --no-topic)
   [1]
   $ hg prev --no-topic
   switching to topic foo
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
-  [15] add fff
+  [14] add eee