开发者

Is there a good (gitorious-like) server for mercurial?

开发者 https://www.devze.com 2023-01-23 10:56 出处:网络
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.

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, b开发者_如何学编程itbucket).

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


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.


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:

hg clone ssh://shared@server/main/repo ssh://shared@server/my-personal/repo

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.

They are the official HG host, and are actually very good.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消