Mercurial 有没有一个好的(类似 gitorious 的)服务器?
在我工作的公司,我们使用汞作为 (d)vcs。
大多数使用中的存储库都保存在集中空间中并通过 hgweb 提供服务。
为了易于使用和更好的用户体验(和概述),我喜欢像 gitorious(github、bitbucket)这样的东西。
它应该允许
- hg 作为后端(否则我会安装 gitorious...)
- 本地安装(不是每个开发人员,而是在我们的网站本地/未托管)
- 轻松(基于网络)存储库创建
- 个人分叉(克隆,但保留新的存储库物理上位于同一台服务器上)
- 合并请求
At the company where I work we are using hg as (d)vcs.
Most of the repositories in use are kept in a cenralized space and served via hgweb.
For ease of use and better user experiance (and overview) I like to have something like gitorious (github, bitbucket).
It should allow
- hg as backend (or else I'd install gitorious...)
- local installation (not per developer, but locally on our site / not hosted)
- easy (web-based) repository-creation
- personal forking (cloning, but keeping the new repo physically on the same server)
- merge requests
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
一个很好的工具是为 Mercurial 提供服务的 RhodeCode。它看起来非常好,具有用户管理、分组、LDAP 集成挂钩控制和一些图形选项。
当前版本 (1.3.x) 支持 git 存储库。
A good tool is RhodeCode that serves Mercurial. It looks really good, has user management, grouping, LDAP integration hook control and some graphing options.
The current release (1.3.x) supports git repositories.
您应该查看 PublishingRepositories wiki 页面来做出此决定。
我的首选解决方案是使用已经存在的 hg-ssh 脚本随您的 Mercurial 安装一起提供。它可以非常轻松地授予多人 ssh 访问权限,而无需为每个人创建单独的系统帐户,也无需授予他们 shell 访问权限。它可以在单个共享用户的
.ssh/authorized_keys
文件中轻松配置。存储库创建不是基于 Web 的,但它非常简单,并且完全支持个人分叉:
然后我设置了 Mercurial 附带的 hgweb 脚本来提供只读视图,并依赖 ssh:// 进行所有写入(虽然 hgweb 也可以很好地写入/推送)。
如果您真的认为基于 Web 的存储库创建比单行基于 ssh 的创建更容易,我之前编写了一个非常简单的脚本来执行此操作:
http://ry4an.org/unblog/UnBlog/2009-09-17
有人会建议“mercurial server”,我不建议这样做。它不是最新的,也从未比 ssh 增加太多价值。
You should make this decision looking at the PublishingRepositories wiki page.
My preferred solution is to use the hg-ssh script that already comes with your mercurial install. It makes it very easy to give multiple people ssh access without creating a separate system account for each, and without giving them shell access. It's very easily configured in the
.ssh/authorized_keys
file of the single shared user.Repository creation isn't web-based, but it's very easy and personal forking is completely supported:
I then set up the hgweb script that comes with mercurial to provide a read-only view, and rely on ssh:// for all writes (though hgweb also does writes / push just fine).
If you really think web based repo creation is easier than one-line ssh-based creation I've previously written a stupidly simple script to do so:
http://ry4an.org/unblog/UnBlog/2009-09-17
Someone is going to suggest "mercurial server", and I'd recommend against it. It's not current and never added much value over ssh.
BitBucket。
他们是HG的官方主持人,实际上非常好。
BitBucket.
They are the official HG host, and are actually very good.
我完全有偏见,因为我是它的开发人员,但是 Kiln 在帮助您创建方面做得非常好并管理存储库。它还具有代码审查并得到商业支持。您可以安装在您自己的服务器上,或者 Fog Creek 将为您托管它。
I'm completely biased, since I'm a developer on it, but Kiln does a very good job helping you create and manage repositories. It also has code reviews and is commercially supported. You can install on your own server, or Fog Creek will host it for you.