Mercurial:qrefresh 编辑多个提交消息?

发布于 2024-10-23 00:36:32 字数 712 浏览 1 评论 0原文

我遇到过这些问题:Mercurial 中的提交消息不正确qrefresh 有害吗。但是,我仍然对我的具体问题感到困惑。

我克隆了一个存储库,此后已经进行了大约 10 次提交。在推动之前,我意识到我应该在每次提交中包含特定的短语。所以基本上我需要编辑最近 10 次提交的提交消息来解决这个问题。已经提到了 qrefresh,但是以一种令人困惑的方式让我担心丢失数据。我仍然是一个非常基本的 Mercurial 用户,因此如果有人可以帮助我提供详细的说明,这样我就不会丢失任何东西,那将会很有帮助。

另外,我使用的服务器正在运行 Mercurial 1.0.1 (我知道它很旧!)

编辑:

我遇到过 我在另一个问题中需要的答案作为其答案之一。它有效,但我也认为有必要阅读 MQ 才能真正了解发生了什么。

I've come across these questions: Incorrect Commit Message In Mercurial and Is qrefresh harmful. However, I'm still confused about my specific problem.

I cloned a repository and have since made about 10 commits. Before pushing, I realized that I should have included a certain phrase in each commit I made. So basically I need to edit the commit message for my last 10 commits to fix this. qrefresh has been mentioned, but in a confusing way that makes me worry about losing data. I'm still a very basic Mercurial user so it would be helpful if someone could help me out with detailed instructions so I don't lose anything.

Also, the server I'm using is running Mercurial 1.0.1 (I know it's old!)

EDIT:

I've come across the answer I needed in another question as one of its answers. It worked, but I also think it's necessary to read up on MQ to really understand what is going on.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

留蓝 2024-10-30 00:36:32

qrefresh 命令仅在您使用 Mercurial 队列 时才有用。你说你仍然是汞新手,所以我认为你不是。但是,是的,如果您使用队列,则可以使用以下命令编辑当前补丁的提交消息:

hg qrefresh -e "new commit message"

再次强调,Mercurial 队列(或 MQ)是一个高级主题我建议您阅读此处

MQ 很强大,但在您熟悉它们之前,HistEdit 是一个不错的选择,正如 Macke 所提到的。

The qrefresh command is only useful if you are using Mercurial Queues. You say that you're still a Hg newbie so I assume you're not. But yes, if you were using queues, the current patch's commit message can be edited with the following command:

hg qrefresh -e "new commit message"

Again, Mercurial Queues (or MQ) is an advanced topic and I'd advise you read up on it here

MQ is powerful, but until you're comfortable with them, HistEdit is a good way to go, as Macke has mentioned.

唠甜嗑 2024-10-30 00:36:32

您可能想查看 HistEditExtension 它有助于编辑一大堆提交(重命名、更改文件、合并、删除等)

此外,服务器使用什么版本通常并不重要。更多的是关于您在本地使用的内容。

You might want to look at the HistEditExtension which helps with editing a whole bunch of commits (renaming, changing files, combining, dropping, etc.)

Also, it usually doesn't matter that much what version the server uses. It's more about what you're using locally.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文