English 中文(简体)
Mercurial 中有哪些功能可以给我提供“检查点”,使我可以在不经常提交破坏性的小改动的情况下进行对比?
原标题:What s the feature in Mercurial that gives me "checkpoints" that I can diff against without commiting frequent, breaking, small changes?

我正在开发一个项目,并进行小规模的试探性更改。在每次更改后,我想与之前的版本进行diff。但是,我不想将这些小更改都提交到永久历史记录中,直到我确认最终更改应该是永久的。然后我想一次性提交。

Mercurial 有哪些功能可以讓我這麼做?

问题回答

我认为你在寻找Mercurial Queues,这可以让你在没有提交的情况下维护一组补丁。你可以推送和弹出补丁,直到你做对了,然后适当地提交。

这里是不错的博客文章http://www.canonware.com/~ttt/2008/04/using-mercurial-patch-queues-for-daily.html

或者官方文档在这里 http://hgbook.red-bean.com/read/advanced-uses-of-mercurial-queues.html

你可以像Sam提到的那样使用MQ,或者你可以像平常一样提交,然后使用折叠扩展或HistEdit扩展来折叠“中间”变更集。你只需要确保在此期间不要将它们推送到其他地方。





相关问题
Can I clone part of a Mercurial repository?

Is it possible to clone part of a Mercurial repository? Let s say the repository is quite large, or contains multiple projects, or multiple branches. Can I clone only part of the repository? E.g. in ...

Sync files in Two Different Repos using HG

I ve got a problem when I try to sync files in two different repos. What I want to do is: I ve got 2 repos A and B, and they share some common files, suppose they lie in A/docs/common/ and B/docs/...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

git for mercurial like git-svn

Hello is there a tool for git that allow to work with mercurial repositories F.e. for svn there is a git-svn package, that allows to clone/commit/update from svn and work in a git way.. So is there ...

Useful Mercurial Hooks [closed]

What are some useful Mercurial hooks that you have come across? A few example hooks are located in the Mercurial book: acl bugzilla notify check for whitespace I personally don t find these very ...

热门标签