tests/test-topic.t
changeset 2623 a263f4c0f2ee
parent 2045 db617700d318
child 2624 fd602980f7ee
--- a/tests/test-topic.t	Sat Jun 17 01:15:15 2017 +0200
+++ b/tests/test-topic.t	Sun Jun 18 03:20:52 2017 +0530
@@ -654,3 +654,58 @@
 Readding the same topic with topic --change should work:
   $ hg topic --change . watwat
   changed topic on 1 changes
+
+Testing issue5441
+  $ hg co 19
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg log -Gr 'draft()'
+  @  changeset:   19:b72b86a1f96b
+  |  tag:         tip
+  |  topic:       watwat
+  |  parent:      13:d91cd8fd490e
+  |  user:        test
+  |  date:        Thu Jan 01 00:00:00 1970 +0000
+  |  summary:     fran?
+  |
+  o  changeset:   13:d91cd8fd490e
+  |  topic:       wat
+  |  parent:      3:a53952faf762
+  |  user:        test
+  |  date:        Thu Jan 01 00:00:00 1970 +0000
+  |  summary:     start on fran
+  |
+
+  $ hg topics --change '13::19' changewat
+  changed topic on 2 changes
+  please run hg evolve --rev "topic(changewat)" now
+  $ hg log -Gr 'draft()'
+  o  changeset:   21:3c7d84fcabcd
+  |  tag:         tip
+  |  topic:       changewat
+  |  parent:      13:d91cd8fd490e
+  |  user:        test
+  |  date:        Thu Jan 01 00:00:00 1970 +0000
+  |  trouble:     unstable
+  |  summary:     fran?
+  |
+  | o  changeset:   20:a96ac830b62e
+  | |  topic:       changewat
+  | |  parent:      3:a53952faf762
+  | |  user:        test
+  | |  date:        Thu Jan 01 00:00:00 1970 +0000
+  | |  summary:     start on fran
+  | |
+  +---@  changeset:   19:b72b86a1f96b
+  | |    topic:       watwat
+  | |    parent:      13:d91cd8fd490e
+  | |    user:        test
+  | |    date:        Thu Jan 01 00:00:00 1970 +0000
+  | |    summary:     fran?
+  | |
+  x |  changeset:   13:d91cd8fd490e
+  |/   topic:       wat
+  |    parent:      3:a53952faf762
+  |    user:        test
+  |    date:        Thu Jan 01 00:00:00 1970 +0000
+  |    summary:     start on fran
+  |