diff tests/test-evolve-topic.t @ 1627:a91115687a7e

topic: preserve topic during evolve previously, topic handling was absent leading to whatever the active topic was when `hg evolve` was run to be used for all evolve results
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 17 Mar 2016 10:04:30 -0700
parents 0edb545503fe
children db19b1dc5c45
line wrap: on
line diff
--- a/tests/test-evolve-topic.t	Thu Mar 17 09:39:35 2016 -0700
+++ b/tests/test-evolve-topic.t	Thu Mar 17 10:04:30 2016 -0700
@@ -157,3 +157,37 @@
   o  0 - {} 199cc73e9a0b add aaa (draft)
   
 
+Test that evolve does not loose topic information
+-------------------------------------------------
+
+  $ hg evolve --rev 'topic(bar)'
+  move:[6] add ggg
+  atop:[15] add fff
+  move:[7] add hhh
+  atop:[16] add ggg
+  move:[8] add iii
+  atop:[17] add hhh
+  move:[9] add jjj
+  atop:[18] add iii
+  working directory is now at 9bf430c106b7
+  $ hg log -G
+  @  19 - {bar} 9bf430c106b7 add jjj (draft)
+  |
+  o  18 - {bar} d2dc89c57700 add iii (draft)
+  |
+  o  17 - {bar} 20bc4d02aa62 add hhh (draft)
+  |
+  o  16 - {bar} 16d6f664b17c add ggg (draft)
+  |
+  o  15 - {foo} 070c5573d8f9 add fff (draft)
+  |
+  o  14 - {foo} 42b49017ff90 add eee (draft)
+  |
+  o  11 - {foo} d9cacd156ffc add ddd (draft)
+  |
+  o  2 - {foo} cced9bac76e3 add ccc (draft)
+  |
+  o  1 - {} a4dbed0837ea add bbb (draft)
+  |
+  o  0 - {} 199cc73e9a0b add aaa (draft)
+