how to avoid to have the same topic on different named branches

Uwe Brauer oub at mat.ucm.es
Sun May 22 12:12:03 UTC 2022


Hi

I am using (ubuntu 16.04) hg 5.2 and evolve 10.X

Now look at this example, please

hg init
echo "First" > test.org
hg add test.org
hg commit -u "Bernhard Riemann <bernhard.riemann at gmail.com>" -m "First"
echo "Second" >> test.org
hg topic feature
hg commit -u "Bernhard Riemann <bernhard.riemann at gmail.com>" -m "Second"
echo "Third" >> test.org
hg commit -u "Bernhard Riemann <bernhard.riemann at gmail.com>" -m "Third"
hg up 1
hg branch testbranch
echo "Forth" >> test.org
hg commit -u "Bernhard Riemann <bernhard.riemann at gmail.com>" -m "ForthThird"

hg log -G  returns

◍  changeset:   3:5f7ba6a8594e
│  Branch:      testbranch
│  tag:         tip
│  Author:      Bernhard Riemann <bernhard.riemann at gmail.com>
│  Date:        Sun, 22 May 2022 14:08:43 +0200
│  Topic:       feature
│  Phase:       draft
│  Summary:     ForthThird
│
│ ○  changeset:   2:1d231644cb2d
│╱   Branch:      default
│    Author:      Bernhard Riemann <bernhard.riemann at gmail.com>
│    Date:        Sun, 22 May 2022 14:08:41 +0200
│    Topic:       feature
│    Phase:       draft
│    Summary:     Third
│
â—‹  changeset:   1:fa211ddef747
│  Branch:      default
│  Author:      Bernhard Riemann <bernhard.riemann at gmail.com>
│  Date:        Sun, 22 May 2022 14:08:40 +0200
│  Topic:       feature
│  Phase:       draft
│  Summary:     Second
│
â—‹  changeset:   0:591ed95cc981
   Branch:      default
   Author:      Bernhard Riemann <bernhard.riemann at gmail.com>
   Date:        Sun, 22 May 2022 14:08:39 +0200
   Phase:       draft
   Summary:     First


How can I avoid to have topics on two different (named) branch?

Regards

Uwe Brauer 



More information about the Mercurial mailing list