开发者

Getting rid of a dangling changeset after rebase in mercurial

I did a hg update --force <repo> hg pull --update --force <other repo> to get another seemingly unrelated repository into the current one.

Afterwards I merged the first changeset of the other repo (to get renamings "right").

A rebase of the other repository starting from the second changeset left the first changeset (here: revision 5431) dangling in the repository:

o  changeset:   5433:68c67c7e0bbb
|
o    changeset:   5432:331ee440893a
|\   
| |
| o  changeset:   5431:1023b4c44f18
|
o  changese开发者_StackOverflowt:   5430:15aff858ec36

To clean things up I'd like to get rid of revision 5431. How would I do that?

Thanks.


By doing hg strip 5431, strip is in the mq extension.

Note that strip is a destructive operation, use with care!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜