Version control 忘记在mercurial提交描述中包含信息

Version control 忘记在mercurial提交描述中包含信息,version-control,mercurial,Version Control,Mercurial,如果您在mercurial中作出承诺: hg commit -m "an incomplete description of the commit" 更正提交描述的选项有哪些?我是否应该立即再次提交完整的描述 编辑 实际上,如果某些内容没有更改,则无法提交。使用 hg rollback 它完全撤消最后一次提交。然后,您可以使用适当的消息重新提交。只要您没有推动更改(或让其拉动更改)

如果您在mercurial中作出承诺:

hg commit -m "an incomplete description of the commit"
更正提交描述的选项有哪些?我是否应该立即再次提交完整的描述

编辑 实际上,如果某些内容没有更改,则无法提交。

使用

hg rollback

它完全撤消最后一次提交。然后,您可以使用适当的消息重新提交。

只要您没有推动更改(或让其拉动更改)