# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1497736252 -19800 # Node ID a263f4c0f2ee28bf51aa3852c0d6813c80eb9690 # 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 -r 6e5f5de46c50 -r a263f4c0f2ee tests/test-topic.t --- 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 + |