跳转到主要内容

mercurial服务器集成立方体

项目描述

摘要

mercurial服务器集成立方体

简单设置

这是最简单的设置,mercurial-server和Cubicweb应用程序在同一服务器上运行。

  • 获取并安装mercurial-server

    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-server源代码中的README文件中找到。

  • 以运行Cubicweb应用程序的用户身份使用mercurial_server立方体登录;确保此用户在~/.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实例的用户必须在mercurial-server配置(见上文)中注册SSH密钥,并确保通过SSH代理解锁和可用。

运行并连接到Web界面,并添加一个新的mercurial-server仓库。

您可以直接克隆它,开始编码并将其推回服务器。

您的更改将通过vcsfile立方体周期性任务定期集成到CW应用程序中(请参阅[VCSFILE]在all-in-one.conf中的check-revision-interval设置)。

权限级别

所有版本的mercurial-server都支持“拒绝”、“读取”和“写入”权限级别。通过https://bitbucket.org/lshift/mercurial-server/pull-request/2/add-support-for-phases添加了“发布”权限级别。

由以下机构支持

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页面