开发者

How to add comments outside of a commit in Mercurial?

If I do a commit in Mercurial and then realise I haven't added enough information to the commit message, is there a way to just add another message or n开发者_开发技巧ote without commiting anything else? What is the best way to get that extra info in there?

I realise I can sometimes rollback and commit again but that is not always possible. I don't want to rewrite history either, I just want to add information.


Unless you're willing to get into editing history using MQ or histedit (and in Mercurial that's not usual practice) or it was the latest commit (rollback) then you need to commit something else to be able to add another changeset with a different commit message.

Mercurial is built around the concept of an "immutable history" and it intentionally restricts tools that let you alter the past.


If this was your last commit then you could rollback and commit again (with the new message).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜