- 浏览: 1483078 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (419)
- XMPP (19)
- Android (180)
- Java (59)
- Network (4)
- HTML5 (13)
- Eclipse (9)
- SCM (23)
- C/C++ (4)
- UML (4)
- Libjingle (15)
- Tools&Softwares (29)
- Linphone (5)
- Linux&UNIX (6)
- Windows (18)
- Google (10)
- MISC (3)
- SIP (6)
- SQLite (5)
- Security (4)
- Opensource (29)
- Online (2)
- 文章 (3)
- MemoryLeak (10)
- Decompile (5)
- Ruby (1)
- Image (1)
- Bat (4)
- TTS&ASR (28)
- Multimedia (1)
- iOS (20)
- Asciiflow - ASCII Flow Diagram Tool.htm (1)
- Networking (1)
- DLNA&UPnP (2)
- Chrome (2)
- CI (1)
- SmartHome (0)
- CloudComputing (1)
- NodeJS (3)
- MachineLearning (2)
最新评论
-
bzhao:
点赞123!
Windows的adb shell中使用vi不乱码方法及AdbPutty -
wahahachuang8:
我觉得这种东西自己开发太麻烦了,就别自己捣鼓了,找个第三方,方 ...
HTML5 WebSocket 技术介绍 -
obehavior:
view.setOnTouchListenerview是什么
[转]android 一直在最前面的浮动窗口效果 -
wutenghua:
[转]android 一直在最前面的浮动窗口效果 -
zee3.lin:
Sorry~~
When I build "call ...
Step by Step about How to Build libjingle 0.4
http://www.cnblogs.com/itech/archive/2011/08/03/2126116.html
一 分布式的源码管理工具Mercurial
mercurial 作为3大主流的分布式源码管理工具,已经被广泛的使用。 例如 googlecode.com 和 codeplex.com 都支持mercurial作为源码管理工具。
主页:http://mercurial.selenic.com/
更多的帮助:http://hgbook.red-bean.com/ 和 TortoiseHg.chm
windows下安装非常的方便,只需要双击msi(例如mercurial-1.9.1-x64.msi 或者 tortoisehg-2.1.2-hg-1.9.1-x64.msi)即可。 同时mercurial也支持Linux和MacOS。
命令行下载: http://mercurial.selenic.com/downloads/
shell集成的TortoiseHG的下载:http://mercurial.selenic.com/downloads/
二 命令行入门
# 将mercurial001 repository 克隆到本地。
$ hg clone https://code.google.com/p/mercurial001
# 切换到mercurial目录
$ cd mercurial001
#在当前目录mercurial001下增加新的文件 t2.txt 。
# 标记t2.txt为add状态
$ hg add
# 在commit和push前要配置自己的user信息,如果没有配置user,commit时默认使用本机的登录用户,此时配置文件中default server的值默认为刚才clone的源
https://code.google.com/p/mercurial001,如果没有配置default的server,则对push命令需要指定server的值。
# 将刚才的修改提交到本地的repository。
$ hg commit -m 'add t2.txt' [ -u AAA ]
# 将本地的repository 跟新到远程的mercurial001 repository。
$ hg push [ http://selenic.com/repo/hello ]
# 如果是push到googlecode,需要使用googlecode的用户名和密码。
2)配置:.hg/hgrc配置文件
解释如下:
[paths]
[ui]
username = AAA <AAA@gmail.com>
3)其他常用的功能
解释如下:
$ hg pull
# 将本地的repository的跟新同步到working copy。
$ hg update
# 将文件t4.txt标记为删除状态 。
$ hg remove t4.txt
# 查看当前的working copy的修改状态
$ hg status
# 将修改应用到本地的repository
$ hg commit -m "remove t4.txt"
# 查看本地的repository的修改历史
$ hg log
# 将本地的repository 跟新到远程的mercurial001 repository。
$ hg push [ http://selenic.com/repo/hello ]
# 如果是push到googlecode,需要使用googlecode的用户名和密码。
4)创建新的repository和project,然后提交修改
# 创建新的repository。
$ hg init (project-directory)
# 进入repository目录。
$ cd (project-directory)
# 增加新的文件。
$ (add some files)
# 将新加的文件标记为新加状态。
$ hg add
# 将前面的改动应用到repository。
$ hg commit -m 'Initial commit'
5)使repository可以通过http被其他的用户访问
# 为当前的repository启动http的访问方式。
$ hg serve
# 通过http来访问repository。
$ hg clone http://ip:8000/
三 其他的比较好的分布式源码管理工具还有:git和bazaar,但是在windows上mecurial安装最方便。
完!
感谢,Thanks!
评论
Refer to:
http://www.slideshare.net/tednaleid/distributed-version-control-dvcs-with-mercurial
发表评论
-
maven设置HTTP代理
2012-03-16 14:52 5527http://maven.apache.org/ Apa ... -
Trigger Cloudbees Jenkins build upon commits to bitbucket git repo
2012-02-29 17:03 17831. On Cloudbees job configure, ... -
jenkins-git-ant实现持续集成及远程部署
2012-02-27 22:31 2164pdf文档格式,中文的,总结的相当不错。 -
hudson+findbugs的配置方法及无数坑爹的陷阱
2012-02-27 22:10 6420http://hi.baidu.com/dburu/blog/ ... -
Git push tags to remote repo
2012-02-21 14:44 3025By default, the ‘git push’ comm ... -
JenkinsMobi/HudsonMobi - 监控Jenkins/Hudson服务的客户端应用
2012-02-16 23:03 1429http://www.jenkins-ci.mobi/ ... -
源码搜索引擎 OpenGrok 0.11 发布
2012-02-16 12:14 1292OpenGrok 0.11 发布了,该版本增加 ... -
Jenkins CLI
2012-03-25 17:50 1129https://wiki.jenkins-ci.org/dis ... -
CloudBees提供的免费Jenkins (prev. Hudson) CI (Continuous Integration)服务
2012-02-15 20:56 2009下面我创建的Jobs 下面是某 ... -
Git、Gerrit与Jenkins/Hudson CI服务器
2012-02-10 11:32 1828http://www.infoq.com/cn/article ... -
Jenkins入门总结
2012-02-05 17:54 9825http://www.cnblogs.com/itech/ar ... -
msysgit - Git for Windows
2012-01-30 20:16 2630http://code.google.com/p/msysgi ... -
Windows下msysgit通过http代理上网
2012-01-30 11:52 2346网上有各种方法,有效的或者无效的,下面这种方法对我来说有效: ... -
访问Bitbucket的手机应用
2012-01-26 20:55 1159http://blog.bitbucket.org/2011/ ... -
A Collection of Useful .gitignore Templates
2012-01-23 16:42 2153https://github.com/github/gitig ... -
Typical .gitignore file for an Android app
2012-01-23 16:38 1374# built application files * ... -
一个免费的私有代码存放仓库
2012-01-23 14:54 4845https://bitbucket.org/ 免费 ... -
Eclipse的Mercurial插件 HgEclipse
2011-05-16 20:46 2476HgEclipse 是一个 Eclipse 支持 Merc ... -
[Subclipse-users] Could not resolve hostname
2011-05-09 12:57 1054Open your Eclipse preferences a ... -
为Git设置代理
2011-03-01 15:35 39638有两篇文章写的都不错, 这里转载一下. 各种 ...
相关推荐
emacs-mercurial-2.6.2-11.el7.x86_64.rpm
离线安装包,测试可用
tested: 1.7.5 Behind-the-firewall self-hosted Mercurial server and source control management system.
#资源达人分享计划#
相对于其他源码管理服务器,它具有如下优势(基于官方介绍): 安装简单 无需手动配置,从web界面即可进行配置 无需任何WEB服务器和数据库支持 支持用户、用户组和权限控制 脱离第三方软件支持Git、Mercurial、HG和...
共享和管理Git,Mercurial和Subversion存储库的最简单方法。 非常容易安装 无需修改配置文件,SCM-Manager完全可以从其Web接口进行配置 无需Apache,无需安装数据库 中央用户,组和权限管理 对Git,Mercurial和...
mercurial-5.2.2-cp27-cp27m-win32
Mercurial是一个跨平台的分布式版本控制软件,主要由Python语言实现,但也包含一个用C语言实现的二进制比较工具。Mercurial一开始的主要运行平台是Linux,现在Mercurial已经被移植到Windows、Mac OS X和大多数的类...
mercurial-3.7.1-x86.msi 最新的windows安装包,
SCM Manager 是一款同时支持Git、Subversion、Mercurial的源代码管理服务器,基于Java构建。 中文版由木鱼制作,除了进行全面的中文化以外,还提供了配置脚本、预置了插件并进行了插件的中文化,以及安装说明。
Mercurial 是一个快速的小型轻量级源代码控制管理系统,旨在高效地处理大型分布式项目,SourceTree辅助工具,GIT辅助工具.
mercurial安装包1.8.4 分布式版本管理工具
在windows 7 64位 环境下使用nginx的nginx-http-flv-module搭建flv视频流播放所需要的资源。
在windows 7 64位 环境下使用nginx的nginx-http-flv-module搭建flv视频流播放所需要的资源。
Mercurial 是一种轻量级分布式版本控制系统,采用 Python 语言实现,易于学习和使用,扩展性强。其是基于 GNU General Public License (GPL) 授权的开源项目。
Mercurial 2.1.1 Inno Setup installer - x86 Windows Mercurial 是一种轻量级分布式版本控制系统,采用Python 语言实现,易于学习和使用,扩展性强。安装程序不需要管理员权限。
mercurial-5.8.1-cp39-cp39-win32
mercurial-5.8.1-cp38-cp38-win32
mercurial-5.8.1-cp310-cp310-win32
tortoisehg-5.9.2-x64 Mercurial(Hg)图形客户端(32 位+64 位)