现在的位置: 首页 > 综合 > 正文

分布式的版本控制系统Mercurial

2012年12月21日 ⁄ 综合 ⁄ 共 1581字 ⁄ 字号 评论关闭

  一. 介绍

  Mercuial与传统的版本控制系统最大不同在于使用分布式的管理。所谓分布式,就是指没有一个所谓的集中的中心(central)库,这个库一般由svn server(svn),vss administrator(vss)控制,而Mercuial没有这样一个库,在本地建库,直接就使用,任何一个库都可以作为中心库。每个库都看成是平等的。

  二. 好处

  分布式最大的好处就是离线工作,这就意味着不联网就可以享受版本控制的好处,普通的提交速度也会快很多,以前集中式的版本控制系统,每次提交都会影响到其他人,以至于不能提交未经测试的版本;而使用分布式的版本控制系统时,你可以随便提交,安全地保护自己的成果,预防意外,也可以随便在本地clone和分支,哈哈,这样不会像其他的控制系统一样造成混乱,mercurial本地就是一个完整的版本控制系统。直到修正到最终版本后才push(相当于集中式版本控制的commit)到真正的一个公用库上去。

  如果想要将自己的工作成果share出去的时候,只用一条普通的push命令,就像远方的服务器一直搭建好了一样。

  三。安装

  安装,官方有说明的,我在这里copy过来,

How can I download the plugin? (在eclipse安装插件)

You can get the plugin easily using the Eclipse Update Manager, just click HelpSoftware Updates in Eclipse. The Eclipse Update Site for MercurialEclipse is available at this URL:

http://cbes.javaforge.com/update(输入这个地址)

If you are not familiar with getting new software and updates to Eclipse, please read this article.

Important note for users of previous HgEclipse versions: if you have HgEclipse already installed on your Eclipse, please explicitely uninstall HgEclipse before installing MercurialEclipse 1.6.0. (This is necessary due to the plugin naming changes.) It's easy: in Eclipse, click (按照这个步骤来)HelpAboutInstallation Details → select HgEclipse → click Uninstall and confirm everything. Now you can install MercurialEclipse 1.6.0.

If you have trouble using the update site then you can download the plugin jars and install manually from here: plugin directory


How can I get the source source code? (获取源代码)

Read here more about checking out source code from a JavaForge repository and see this page for the clone URL. If you are already registered and are in a hurry, then run this Mercurial command and login with your JavaForge username and password:

hg clone(输入这个地址) http://javaforge.com/hg/hgeclipse

抱歉!评论已关闭.