Mercurial服务器集成多维数据集
cubicweb-mercurial-server的Python项目详细描述
摘要
Mercurial服务器集成多维数据集
简单设置
这是最简单的设置,使用Mercurial服务器和CubicWeb 在同一服务器上运行的应用程序。
获取并安装Mercurial服务器:
apt-get install mercurial-server
或来源:
hg clone http://hg.opensource.lshift.net/mercurial-server # remove installdoc from installfiles target of Makefile, then run (as root): # (files go to /etc/mercurial-server and /var/lib/mercurial-server) # (command line for debian-like systems, for redhat like, see official doc). make setup-adduser
官方文件可在http://www.lshift.net/mercurial-server.html找到 以及Mercurial服务器源中的自述文件。
以运行cubicweb应用程序的用户身份登录Mercurial_服务器多维数据集; 确保此用户在~/.ssh/id_rsa.pub中有rsa ssh密钥,然后运行:
sudo mkdir -p /etc/mercurial-server/keys/root/$USER sudo cp ~/.ssh/id_rsa.pub /etc/mercurial-server/keys/root/$USER sudo -u hg /usr/local/share/mercurial-server/refresh-auth
基本用法
运行cubicweb实例的用户必须在中注册ssh密钥 Mercurial服务器配置(见上文)通过 ssh代理。
运行并连接到web界面,并添加一个新的mercurial服务器存储库。
您可以立即克隆它,开始编码并将其推回到服务器。
您的更改通过 VCSFile多维数据集定期任务(请参阅中的[VCSFile]检查修订间隔设置 你的一体化.conf)。
权限级别
所有版本都支持“拒绝”、“读取”和“写入”权限级别 的服务器。“发布”权限级别由添加 https://bitbucket.org/lshift/mercurial-server/pull-request/2/add-support-for-phases。