mercurial使用_使用Mercurial检阅上次公开修订

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别名 ,我希望我能尽快创建它-我会节省很多时间!

翻译自: https://davidwalsh.name/mercurial-checkout-master

mercurial使用

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值