[PATCH 1 of 5 topic-experiment] tests: add a test to show issue5441 in test-topic.t

Pulkit Goyal 7895pulkit at gmail.com
Sun Jun 18 18:12:20 EDT 2017


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1497736252 -19800
#      Sun Jun 18 03:20:52 2017 +0530
# Node ID 522b3457c765d271d8029a92dc3d8590b6679c6b
# Parent  6e5f5de46c50ebb104a467f4d90a5fa9882db1b9
tests: add a test to show issue5441 in test-topic.t

The issue will be fixed in the next patch and the test will be helpful to show
that.

diff --git a/tests/test-topic.t b/tests/test-topic.t
--- a/tests/test-topic.t
+++ b/tests/test-topic.t
@@ -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
+  |


More information about the Mercurial-devel mailing list