有了Mercurial,我如何“压缩”一系列的变化集合成一个前推? [英] With Mercurial, how can I "compress" a series of changesets into one before pushing?

查看:165
本文介绍了有了Mercurial,我如何“压缩”一系列的变化集合成一个前推?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个本地和一个远程Mercurial仓库。现在,我开始处理一个功能。我工作,当我认为它完成,我提交变更集。测试一点,我发现我可以通过调整代码中的东西进一步改进这个功能。我做出改变并提交。 20分钟后,我发现这个新功能中有一个错误,所以我修复它并提交。

Let's say I have a local and a remote Mercurial repository. Now, I start working on a feature. I work on it, and when I think it's done, I commit the changeset. Testing it a bit more, I find that I could further improve this feature by tweaking something in the code. I make the change and commit. 20 minutes later, I find there's a bug in this new feature, so I fix it and commit that too.

我现在有3个更改集,我真的想推到远程存储库作为一个变更集,消息实现功能X,例如。

I now have 3 changesets that I would really like to push to the remote repository as one changeset with message "Implementing feature X", for instance.

如何做到这一点没有多少麻烦?我相信我可以用补丁,但它似乎很多工作。

How can I do this without much hassle? I believe I could do it with patches, but it seems like a lot of work.

推荐答案

折叠扩展程序

这篇关于有了Mercurial,我如何“压缩”一系列的变化集合成一个前推?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆