add a topic but not a head
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Thu Jun 13 11:26:40 UTC 2019
The result you get is not the expected behavior (the result you want is
the expected behavior).
which versions or Mercurial and topic are you using ?
On 6/13/19 12:06 PM, Uwe Brauer wrote:
>
>
> Hi
>
> In principle I like the fact that when I create a topic, I create a new
> head (it annoyed but this is not possible with a bookmark).
>
> However there are situations in which I would like to add a topic to
> certain old changesets.
>
> For example
> suppose I have
>
> @ changeset: 5:6bdfa55fe97e
> | tag: tip
> | topic: NewTopic
> | user: Uwe Brauer <oub at mat.ucm.es>
> | date: Mon Jun 10 14:55:17 2019 +0200
> | summary: Six
> |
> o changeset: 4:11b9366b721d
> | topic: NewTopic
> | user: Uwe Brauer <oub at mat.ucm.es>
> | date: Mon Jun 10 14:55:16 2019 +0200
> | summary: Fifth
> |
> o changeset: 3:c88fe08ea277
> | bookmark: topic4
> | user: Uwe Brauer <oub at mat.ucm.es>
> | date: Mon Jun 10 14:55:16 2019 +0200
> | summary: Fourth
> |
> o changeset: 2:1fcd69f08361
> | user: Bernhard Riemann <bernhard.riemann at gmail.com>
> | date: Mon Jun 10 14:55:16 2019 +0200
> | summary: Third
> |
> o changeset: 1:8e8bcc5c705c
> | user: Bernhard Riemann <bernhard.riemann at gmail.com>
> | date: Mon Jun 10 14:55:16 2019 +0200
> | summary: Second
> |
>
> Now I want to add a topic to changesets 1 till 3
>
> I run
>
> hg topics topic2 -r 1::3
>
> And I obtain
> o changeset: 8:3f5dcae2fc89
> | tag: tip
> | topic: topic2
> | parent: 0:ec42be3b9334
> | user: Bernhard Riemann <bernhard.riemann at gmail.com>
> | date: Mon Jun 10 14:55:16 2019 +0200
> | summary: Second
> |
> | o changeset: 7:020ef0be49a2
> | | topic: topic2
> | | parent: 1:8e8bcc5c705c
> | | user: Bernhard Riemann <bernhard.riemann at gmail.com>
> | | date: Mon Jun 10 14:55:16 2019 +0200
> | | instability: orphan
> | | summary: Third
> | |
> | | o changeset: 6:6537febe0321
> | | | bookmark: topic4
> | | | topic: topic2
> | | | parent: 2:1fcd69f08361
> | | | user: Uwe Brauer <oub at mat.ucm.es>
> | | | date: Mon Jun 10 14:55:16 2019 +0200
> | | | instability: orphan
> | | | summary: Fourth
>
> Three new heads!
>
> Hg heads shows me
>
> changeset: 8:3f5dcae2fc89
> tag: tip
> topic: topic2
> parent: 0:ec42be3b9334
> user: Bernhard Riemann <bernhard.riemann at gmail.com>
> date: Mon Jun 10 14:55:16 2019 +0200
> summary: Second
>
> changeset: 7:020ef0be49a2
> topic: topic2
> parent: 1:8e8bcc5c705c
> user: Bernhard Riemann <bernhard.riemann at gmail.com>
> date: Mon Jun 10 14:55:16 2019 +0200
> instability: orphan
> summary: Third
>
> changeset: 6:6537febe0321
> bookmark: topic4
> topic: topic2
> parent: 2:1fcd69f08361
> user: Uwe Brauer <oub at mat.ucm.es>
> date: Mon Jun 10 14:55:16 2019 +0200
> instability: orphan
> summary: Fourth
>
>
> So the question is, could the topic command create a topic without
> creating a head?
>
> It would be more like adding the same bookmark to various changesets. (I
> cannot use the tag or the bookmark command for that).
>
> Could that be done?
>
> Thanks and regards
>
> Uwe Brauer
> _______________________________________________
> Evolve-testers mailing list
> Evolve-testers at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/evolve-testers
>
--
Pierre-Yves David
More information about the Evolve-testers
mailing list