Install mercurial 1.3.1 on debian lenny
Sunday, September 13th, 2009 @ 9:05 pm
准备把gaixie.org中一些文件放入googlecode,一旦服务器出什么问题,方便恢复。打算试试mercurial。简单看了一下googlecode 关于mercurial的说明,需要mercurial 1.1以上版本,而debian lenny的默认版本只有1.0,所以只能手工安装了。
照惯例先看mercurial 官方网站的相关安装文档,发现可以通过 python easy_install,这就简单了。
- 先装python的相关包:
$ sudo aptitude install python2.5 python2.5-setuptools python2.5-dev
- 然后开始自动编译安装最新版本的mercurial:
$ sudo easy_install -U mercurial $ hg --version
- 用之前要先配一下用户名:
$ vi ~/.hgrc
内容如下:
[ui] username = Tommy Wang
- 从googlecode 上clone 我刚才创建好的项目
$ hg clone https://gaixie.googlecode.com/hg/ gaixie-source
- 做一些修改,然后执行一次执行下列命令。
$ hg add $ hg commit -m "Initail import of source." $ hg push
成功后,去GoogleCode上看一下push的结果。
Tags: mercurial
Posted in Technology | No Comments »