Mercurial-server的安装
Mercurial是一个分布式的的版本控制工具。其自身提供了一个web服务端,但是没有权限控制功能。Mercurial-server可以弥补这个不足,它通过ssh来控制不同版本库的访问权限。需要注意的是Mercurial-server只能安装在linux系统上。
Ubuntu系统下的安装:
如果使用的是Ubuntu操作系统的话安装是非常简单的,只需要执行下面的命令:
$ sudo apt-get update$ sudo apt-get install mercurial mercurial-server
a.首先通过make命令进行文件复制:make pythonbuild pythoninstallb.通过make执行创建用户任务会报错,所以直接使用系统命令创建:useradd hgc.再通过make的inituser对用户进行初始化:make inituser
init user=root/**deny repo=hgadminwrite user=users/**
remote: Traceback (most recent call last):remote: File "/usr/local/share/mercurial-server/hg-ssh", line 76, in <module>remote: dispatch.dispatch(['-R', repo, 'serve', '--stdio'])remote: File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 31, in dispatchremote: if req.ferr:remote: AttributeError: 'list' object has no attribute 'ferr'abort: no suitable response from remote hg!
# wget http://prdownloads.sourceforge.net/docutils/docutils-0.7.tar.gz?download# tar -zxf docutils-0.7.tar.gz# cd docutils-0.7# python setup.py install