mercurial使用
I've always preferred git over Mercurial (hg
) because the feature branch workflow makes organizing code and working off of master very easy. You don't get that with vanilla mercurial -- instead, commits can just sort of apply on top of each other, without much organization. Sometimes mercurial can feel a bit chaotic.
我一直比Mercurial( hg
)更喜欢git,因为功能分支工作流程使组织代码和简化master工作变得非常容易。 您无法通过香草味来实现这一点-相反,提交可以仅在彼此之间相互应用,而无需太多组织。 有时水星感觉会有些混乱。
When working on Mozilla's mozilla-central repository (for your beloved Firefox!), I always start new commits off of the latest public commit. "public means it has been merged into mozilla-central, "draft" means it was created locally and is only on my machine.
当使用Mozilla的mozilla中央存储库(适用于您心爱的Firefox!)时,我总是从最新的公共提交中启动新的提交。 “公开表示它已合并到mozilla-central中,”草稿”表示它是在本地创建的,并且仅在我的计算机上。
Getting the last public revision ID required a bit of command line hackery and search so I found a better way to check out the last public revision:
获取最新的公共修订版ID需要一些命令行黑客和搜索功能,因此我找到了一种更好的方法来查看最新的公共修订版:
hg checkout -r 'last(public())'
That command is a bit much to remember so I created an alias in my .bash_profile
:
该命令要记住很多,所以我在.bash_profile
创建了一个别名:
alias hgmaster='hg checkout -r “last(public())”’
As with every alias I create, whether a git alias or a bash alias, I wish I had created this sooner -- I'd have saved so much time!
就像我创建的每个别名一样,无论是git别名还是bash别名 ,我希望我能尽快创建它-我会节省很多时间!
mercurial使用