新建项目:
$ cd project/
$ hg init # 创建 .hg
查看哪一个revision被checked out:hg parents
拷贝版本到本地:hg clone http://selenic.com/hg YOURDIR
获取更新:hg pull http://selenic.com/hg
获取更新后,即可合并新的tip版本到本地:hg merge
获取更新后,即可更新当前版本:hg update
经过一些代码更新后,可形成新的版本:hg commit
导出补丁:
(make changes)
$ hg commit
$ hg export tip # export the most recent commit
Reference:
http://hgbook.red-bean.com/read/ (The Definitive Guide by Bryan O'Sullivan, 使用手册)
http://mercurial.selenic.com/wiki/BeginnersGuides (初学者指南)
http://mercurial.selenic.com/wiki/ChineseQuickStart (快速入门)