[hg-git, add topics «backwards», delete topics] (was: Is topics similar to rebase with evolve enabled)

Uwe Brauer oub at mat.ucm.es
Thu May 30 06:13:41 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

Thanks, some questions remarks:

    1. It seems that when I push to a git repository, with the hg-git
       extensions, changesets with a topic are ignored.

    2. Is it possible to add a topic, starting from a changeset up to
       tip?
Suppose I have 
  changeset:   2:0556491f3147
|  bookmark:    master
|  tag:         default/master
|  tag:         tip
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  date:        Thu May 30 07:50:18 2019 +0200
|  summary:     commit
|
o  changeset:   1:9db377faaf25
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  date:        Thu May 30 07:49:02 2019 +0200
|  summary:     second
|
o  changeset:   0:b376e0bd9631
   user:        Uwe Brauer <oub at mat.ucm.es>
   date:        Thu May 30 07:48:51 2019 +0200
   summary:     commit

I want to set a topic for rev 1 and 2

I tried 

 hg topics topic1 --rev 1

That gave 

o  changeset:   3:2797d191b650
|  tag:         tip
|  topic:       topic1
|  parent:      0:b376e0bd9631
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  date:        Thu May 30 07:49:02 2019 +0200
|  summary:     second
|
| @  changeset:   2:0556491f3147
| |  bookmark:    master
| |  tag:         default/master
| |  user:        Uwe Brauer <oub at mat.ucm.es>
| |  date:        Thu May 30 07:50:18 2019 +0200
| |  instability: orphan
| |  summary:     commit
| |
| x  changeset:   1:9db377faaf25
|/   user:        Uwe Brauer <oub at mat.ucm.es>
|    date:        Thu May 30 07:49:02 2019 +0200
|    obsolete:    meta-changed using changetopics as 3:2797d191b650
|    summary:     second
|
o  changeset:   0:b376e0bd9631
   user:        Uwe Brauer <oub at mat.ucm.es>
   date:        Thu May 30 07:48:51 2019 +0200
   summary:     commit


Which is not what I want.


Finally how can I delete a topic. 

I tried 

 hg topics --clear  

But it did not work. What do I miss?

Regards

Uwe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5025 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20190530/c955a0a7/attachment.p7s>


More information about the Mercurial mailing list