diff tests/test-evolve-topic.t @ 1629:548195454683

topic: restrict 'hg prev' to current topic unless --no-topic is passed This is far from perfect but a good start
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 17 Mar 2016 11:31:55 -0700
parents db19b1dc5c45
children 52cda77949f5
line wrap: on
line diff
--- a/tests/test-evolve-topic.t	Thu Mar 17 11:25:01 2016 -0700
+++ b/tests/test-evolve-topic.t	Thu Mar 17 11:31:55 2016 -0700
@@ -214,3 +214,10 @@
   switching to topic bar
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   [16] add ggg
+  $ hg prev
+  no parent in topic "bar"
+  (do you want --no-topic)
+  $ hg prev --no-topic
+  switching to topic foo
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  [15] add fff