Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350461 - Request for Mercurial service
Summary: Request for Mercurial service
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-03 13:58 UTC by Fabian Groffen
Modified: 2012-09-11 22:53 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2011-01-03 13:58:34 UTC
Some upstream projects use Mercurial (hg) for their source development.  Currently I keep clones where I maintain patches, bugfixes, etc. locally, while I would like to make this available to other parties.  (Particular case is Mutt here, on which many distros benefit from each other's patches.)

I would very much like it when there would be a place on Gentoo's hardware where I can push Mercurial repos to (e.g. Gentoo's Mutt tree, Gentoo Prefix's Portage), such that others can pull from there, and most preferably also inspect the sources, commits, etc. using HG web.
Comment 1 Rafael Martins (RETIRED) gentoo-dev 2011-01-03 17:46:25 UTC
I totally support this request.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2011-01-06 23:02:59 UTC
We want to focus at one VCS only, this is currently git. So there will be no other VCS besides the actual support ones (CVS/SVN/GIT) and we will remove CVS/SVN as soon as nobody else uses it any more.
Comment 3 Fabian Groffen gentoo-dev 2011-01-07 07:52:48 UTC
Is this an official remark that says I have to find hosting myself?

I feel the preference of a couple of people for some VCS is highly unrelated to the actual issue at hand here.
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2011-01-07 14:34:15 UTC
(In reply to comment #3)
> Is this an official remark that says I have to find hosting myself?
> 
> I feel the preference of a couple of people for some VCS is highly unrelated to
> the actual issue at hand here.
> 

(FYI: I am not on Infra, but I will butt in anyway.)

Not to toe the old infra line; but stuff like this costs hardware and time to maintain and most users will just use git...so from a cost / benefit point of view it doesn't seem worth the effort to set up anything else.

Oftentimes people think someone could just 'throw something together' and 'get it done in a couple of days' but this often leads to events that cause dissatisfaction for users (such as data loss, latency, or significant downtime.)
Comment 5 Rafael Martins (RETIRED) gentoo-dev 2011-01-07 17:20:19 UTC
(In reply to comment #3)
> Is this an official remark that says I have to find hosting myself?
> 

I don't know the answer, but during gsoc I was "forced" to migrate my repository from mercurial to git, and after I become a dev I also had to create some git repositories due to these "infrastructure restrictions". Now I'm seriously considering move all my stuff back to mercurial hosted by myself, as I always did.

I'd suggest you do the same. :(

Regards
Comment 6 Fabian Groffen gentoo-dev 2011-01-07 17:33:57 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > Is this an official remark that says I have to find hosting myself?
> 
> I don't know the answer, but during gsoc I was "forced" to migrate my
> repository from mercurial to git, and after I become a dev I also had to create
> some git repositories due to these "infrastructure restrictions". Now I'm
> seriously considering move all my stuff back to mercurial hosted by myself, as
> I always did.
> 
> I'd suggest you do the same. :(

Well, we have gentooexperimental.org, so if you want to put it there, drop me a line, I guess we can work something out.

I can live with that quite well as long as the official answer why Gentoo doesn't do this is not "we don't do it because it aint git".
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-01-07 18:19:06 UTC
For an official answer, we don't have the manpower for existing projects, let alone adding something more large like this.

If there is something like gitolite that's a drop-in hosting solution for Hg, then it can get considered later on.
Comment 8 Rafael Martins (RETIRED) gentoo-dev 2011-01-13 06:28:29 UTC
(In reply to comment #7)
> If there is something like gitolite that's a drop-in hosting solution for Hg,
> then it can get considered later on.
> 

This is not the problem...

http://www.lshift.net/mercurial-server.html

I'm going to test it myself/add to the tree.
Comment 9 Mike Doty (RETIRED) gentoo-dev 2011-01-13 06:56:25 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > If there is something like gitolite that's a drop-in hosting solution for Hg,
> > then it can get considered later on.
> > 
> 
> This is not the problem...
> 
> http://www.lshift.net/mercurial-server.html
> 
> I'm going to test it myself/add to the tree.
> 

This looks like it has some potential.  Provide detailed reports of your testing and we'll consider adding it as a secondary service of some sort.
Comment 10 Fabian Groffen gentoo-dev 2011-01-13 09:39:18 UTC
Ok, that looks nice, a wrapper around hg-ssh, a solution that works very well for us right now.

As offered before, if it is of any interest to the infra team to have a maintainer of a service like this, I'm happy to provide my time to do it.
Comment 11 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-01-13 15:16:30 UTC
if this gets full ack from infra, I'm willing to work on this, but IMO we need to migrate overlays to git.g.o first and either start killing SVN repos or import them in gitolite. Having to maintain 4 VCS's is madness
Comment 12 Mike Doty (RETIRED) gentoo-dev 2011-01-14 02:57:05 UTC
(In reply to comment #11)
>
> Having to maintain 4 VCS's is madness
> 

Agreed, but lets focus this bug on the suitability of the proposed solution.  Once we determine the software can be used we can decide if and when we implement it.
Comment 13 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-03-04 17:51:21 UTC
I offered to maintain this at some point (I'm a Mercurial developer, as well), and would still be open to doing that. I'd also very much appreciate being able to use hg on Gentoo infra for my Gentoo-related things (and possibly generally Python-related things, since they're using hg now, too).
Comment 14 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-03-07 21:19:22 UTC
BTW, I don't think there's much value in mercurial-server over just hg-ssh, hgweb and some maintenance scripts. I've set up the same thing on hg.python.org and use it on several of the other servers I maintain. If someone can just give us an SSH account and access to the web server config, we should be fine.
Comment 15 Rafael Martins (RETIRED) gentoo-dev 2011-03-07 21:44:49 UTC
(In reply to comment #14)
> BTW, I don't think there's much value in mercurial-server over just hg-ssh,
> hgweb and some maintenance scripts. I've set up the same thing on hg.python.org
> and use it on several of the other servers I maintain. If someone can just give
> us an SSH account and access to the web server config, we should be fine.

Agreed.

I'm also volunteering to maintain this service. If the infra guys can grant we with (part of) a box for this service, we should be ok with hg-ssh, hgweb and djc's scripts.
Comment 16 Fabian Groffen gentoo-dev 2011-03-07 21:57:11 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > BTW, I don't think there's much value in mercurial-server over just hg-ssh,
> > hgweb and some maintenance scripts. I've set up the same thing on hg.python.org
> > and use it on several of the other servers I maintain. If someone can just give
> > us an SSH account and access to the web server config, we should be fine.
> 
> Agreed.
> 
> I'm also volunteering to maintain this service. If the infra guys can grant we
> with (part of) a box for this service, we should be ok with hg-ssh, hgweb and
> djc's scripts.

what kind of scripts are necessary?  isn't the great thing of mercurial that everything is already in the mercurial package itself to have web, access and repo setup?
Comment 17 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-07 21:59:43 UTC
(In reply to comment #14)
> If someone can just give us an SSH account and access to the web server config, > we should be fine.

Just to clarify, ssh access to maintain a service won't be granted. All of our services are controlled via a central configuration management service (cfengine).
Comment 18 Rafael Martins (RETIRED) gentoo-dev 2011-03-08 03:12:54 UTC
(In reply to comment #17)
> (In reply to comment #14)
> > If someone can just give us an SSH account and access to the web server config, > we should be fine.
> 
> Just to clarify, ssh access to maintain a service won't be granted. All of our
> services are controlled via a central configuration management service
> (cfengine).

but we just need a common user account to give access to the users. what would be wrong with this? and why we would need to use cfengine to handle a .ssh/authorized_keys file? :(
Comment 19 Mike Doty (RETIRED) gentoo-dev 2011-03-08 05:24:58 UTC
You guys are getting ahead of yourselves.  Where is the information from the testing that was supposed to happen?
Comment 20 Rafael Martins (RETIRED) gentoo-dev 2011-03-08 05:32:09 UTC
(In reply to comment #19)
> You guys are getting ahead of yourselves.  Where is the information from the
> testing that was supposed to happen?

ok, I'm running mercurial-server on my own server for some months, and it works as expected, but it's less complex that gitolite.

But I agree with djc. This kind of thing is useless, as mercurial is "made to be simple", and we would need to patch mercurial-server to work as you guys are expecting (eg. be similar to gitolite).
Comment 21 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-03-08 07:46:14 UTC
(In reply to comment #19)
> You guys are getting ahead of yourselves.  Where is the information from the
> testing that was supposed to happen?

What kind of information are you looking for, exactly?
Comment 22 Christoph Junghans (RETIRED) gentoo-dev 2011-03-12 12:40:05 UTC
(In reply to comment #20)
> ok, I'm running mercurial-server on my own server for some months, and it works
> as expected, but it's less complex that gitolite.
Did you ever had a look at rhodecode (http://mercurial.selenic.com/wiki/RhodeCode)? It is basically like a free and open mercurial version of github. We are using it at work for quite some time.

RhodeCode came into my mind due to the fact that it uses ldap for authentication.
Comment 23 Fabian Groffen gentoo-dev 2011-03-12 12:44:52 UTC
The point is not to host the envisaged repos externally, we have plenty of places where to do that.
Comment 24 Christoph Junghans (RETIRED) gentoo-dev 2011-03-12 13:52:36 UTC
(In reply to comment #23)
> The point is not to host the envisaged repos externally, we have plenty of
> places where to do that.
I meant to install RhodeCode on one of the gentoo servers.
Comment 25 Rafael Martins (RETIRED) gentoo-dev 2011-03-12 16:55:44 UTC
(In reply to comment #22)
> (In reply to comment #20)
> > ok, I'm running mercurial-server on my own server for some months, and it works
> > as expected, but it's less complex that gitolite.
> Did you ever had a look at rhodecode
> (http://mercurial.selenic.com/wiki/RhodeCode)? It is basically like a free and
> open mercurial version of github. We are using it at work for quite some time.
> 
> RhodeCode came into my mind due to the fact that it uses ldap for
> authentication.

RhodeCode looks overkill. We don't need it IMHO.
Comment 26 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-03-12 18:46:40 UTC
RhodeCode actually looks much closer to what we want in terms of being able to manage Hg repos.

However, why has nobody pointed our mercurial-server yet?
http://www.lshift.net/mercurial-server.html
This is as close of a gitolite-for-Hg that I've seen.
Comment 27 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-03-12 18:52:53 UTC
Sorry, I missed that rafael did suggest it.

Why is that being ignored and instead promoting djc's scripts? Unless said scripts also run as a restricted SSH user, they don't fit our needs.
Comment 28 Luca Barbato gentoo-dev 2011-03-17 14:05:17 UTC
I'd rather keep using git on the server side and use hg-git to interoperate on the client side
Comment 29 Fabian Groffen gentoo-dev 2011-03-17 14:08:46 UTC
Cumbersome, and that plugin isn't really stable (yet).  I've encountered multiple issues for the portage repo for instance.  Next, git doesn't know the same kind of branches that mercurial does.  In particular those one would use when upstream uses mercurial too.
Comment 30 Alec Warner (RETIRED) archtester gentoo-dev Security 2012-09-11 21:13:47 UTC
no.
Comment 31 Christoph Junghans (RETIRED) gentoo-dev 2012-09-11 22:27:57 UTC
Now as this is WONTFIX, why not creating a Gentoo project on googlecode in the same spirit as Gentoo on github.
Comment 32 Rafael Martins (RETIRED) gentoo-dev 2012-09-11 22:52:00 UTC
(In reply to comment #31)
> Now as this is WONTFIX, why not creating a Gentoo project on googlecode in
> the same spirit as Gentoo on github.

I think bitbucket is better, because it allows organizations, like github does.
Comment 33 Rafael Martins (RETIRED) gentoo-dev 2012-09-11 22:53:24 UTC
(In reply to comment #32)
> (In reply to comment #31)
> > Now as this is WONTFIX, why not creating a Gentoo project on googlecode in
> > the same spirit as Gentoo on github.
> 
> I think bitbucket is better, because it allows organizations, like github
> does.

https://bitbucket.org/gentoo

already created by some other dev.