版本控制 Mercurial
来源:互联网 发布:java raw type 编辑:程序博客网 时间:2024/04/29 14:26
在BitBucket上使用Mercurial做代码版本控制: BitBucket: 是一家源代码托管网站,采用Mercurial和Git作为分布式版本控制系统。
GUI TortoiserHg: TortoiseHg is a set of graphical tools and a shell
extension for the Mercurial distributed revision control system.
Mercurial 常用命令:
hg clone repository :这里repository是源码的地址 hg add :add new file hg commit -m 'My changes' :-m增加修改信息, 注:提交后要push,changeset才能上传到远程仓库上 hg push :推入远程仓库 hg pull :下拉changeset hg merge :合并分支 hg update :更新 hg status :show changed files in the working directory hg forget :forget the specified files on the next commit hg remove :remove the specified files on the next commit import提交代码的一般步骤:
$hg commit //为本地changes创建一个节点 $hg pull //检查远程仓库是否有别人新的changes。 $hg merge //如果有别人的更新。 $hg push //将changes推入远程仓库。
在.hg/hgrc中配置扩展
配置vimdiff:
[extensions] hgext.extdiff = [extdiff]cmd.vimdiff = // 添加后使用 hg vimdiff [file] 查看
配置用户名:
[ui] username =
配置扩展操作mq:
[extensions] mq =
补丁的常用命令:
hg qnew 创建一个补丁 hg qpush 将补丁压栈 hg qpop 将补丁弹栈 hg qrefresh 刷新补丁,将新的changes刷入补丁 hg qfinish 将补丁转换成commit hg qrename 补丁更名 hg qunapplied print the patches not yet applied hg qdelete 删除某个未使用的补丁(unapplied)
关于补丁的一些官方资料:
GUI: http://tortoisehg.bitbucket.org/manual/2.0/patches.html
http://mercurial.selenic.com/wiki/MqExtension/
http://mercurial.selenic.com/wiki/MqTutorial
HGRC:
http://www.selenic.com/mercurial/hgrc.5.html
- 版本控制 Mercurial
- 学习hg(mercurial)版本控制
- 版本控制mercurial(hg)常用命令
- 拥抱Mercurial---选择分布式版本控制工具
- 分布式版本控制工具:git与Mercurial
- 分布式版本控制工具:git & mercurial
- 分布式版本控制工具 Mercurial 使用教程
- 【转】版本控制軟體hg (Mercurial)
- 开始使用Mercurial分布式版本控制
- Mercurial - 方便控制、强扩展性的分布式版本控制系统
- 分布式版本控制工具 Mercurial 使用教程 [转]
- 版本控制--Mercurial与Eclipse的整合¶
- OGRE 不再使用SVN做版本控制 改用 Mercurial
- 分布式和集中式版本控制工具-svn,git,mercurial
- Mercurial(Hg)分布式版本控制的快速入门
- Unity3D的版本控制(Unity 3D +Mercurial)
- Mercurial - 分布式版本控制系统
- Mercurial-分布式版本控制系统
- 完美实现GIF动画缩略图(GIF压缩使用C++、shell命令、php)
- 运用函数输出星号图
- [OpenGL]课后案例02:生成Sierpinski镂垫的递归程序
- C# 窗口之间的传值
- 每天一个linux命令(18):locate 命令
- 版本控制 Mercurial
- 启动android默认浏览器
- [OpenGL]课后案例03:三维Sierpinski镂垫的递归程序
- [OpenGL]课后案例04:Marching-Square程序
- Java 的JSON、XML转换方法
- MFC/VC++自绘菜单下载源码
- TabWidget去除底部下划线_横线
- SSH协议交互过程
- Mysql导入大尺寸sql脚本文件