Is topics similar to rebase with evolve enabled

Pulkit Goyal 7895pulkit at gmail.com
Wed May 29 13:30:26 UTC 2019


Hi,

Topic extension does not rebase automatically. You will need to rebase
yourself. Some documentation about topics can be found here:
https://www.mercurial-scm.org/doc/evolution/tutorials/topic-tutorial.html

On Wed, May 29, 2019 at 9:22 AM Uwe Brauer <oub at mat.ucm.es> wrote:

>
>
> Hi
>
> Till recently I generated short-live branches like this
>
> hg branch topic1
>
> Edit, commit etc
> and obtain
>
>   changeset:   24:835e59fab1e4
> |  tag:         tip
> |  parent:      22:a89ec4ca8b98
> |  user:        Uwe Brauer <oub at mat.ucm.es>
> |  date:        Wed May 29 08:16:07 2019 +0200
> |  summary:     Default 3
> |
> | o  changeset:   23:9ae460ee70dc
> | |  branch:      topic1
> | |  parent:      20:52c4132dea01
> | |  user:        Uwe Brauer <oub at mat.ucm.es>
> | |  date:        Wed May 29 08:15:33 2019 +0200
> | |  summary:     Topic 2
> | |
> o |  changeset:   22:a89ec4ca8b98
> | |  user:        Uwe Brauer <oub at mat.ucm.es>
> | |  date:        Wed May 29 08:15:04 2019 +0200
> | |  summary:     Default 2
> | |
> o |  changeset:   21:45ffa1538811
> | |  parent:      19:c597eed143af
> | |  user:        Uwe Brauer <oub at mat.ucm.es>
> | |  date:        Wed May 29 08:14:43 2019 +0200
> | |  summary:     Default
> | |
>
> Then I simply run
>
>  hg up default
>  hg rebase -d . -b topic1 --collapse
>
> And hg log -G returns
>
>   changeset:   25:a66fda73ccf6
> |  tag:         tip
> |  user:        Uwe Brauer <oub at mat.ucm.es>
> |  date:        Wed May 29 08:15:33 2019 +0200
> |  summary:     Collapsed revision
> |
> o  changeset:   24:835e59fab1e4
> |  parent:      22:a89ec4ca8b98
> |  user:        Uwe Brauer <oub at mat.ucm.es>
> |  date:        Wed May 29 08:16:07 2019 +0200
> |  summary:     Default 3
>
>
> Does topics, basically, the same?
>
> Regards
>
> Uwe Brauer
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20190529/7968d1a3/attachment-0002.html>


More information about the Mercurial mailing list