#171 Rename hgbodhi to gitbodhi
Closed: Fixed None Opened 18 years ago by lmacken.

I'd like to migrate bodhi from mercurial to git :)


I tried using Tailor to convert from hg->git, but encountered much pain and suffering. I'm going to just suck it up and deal with mercurial :)

So I got hg-to-git.py upstream to fix a couple of bugs that I hit when trying to convert bodhi to git. I was hoping to still migrate over at some point. Thanks!

Cool - it might be useful to talk to f13 too - I think he recently switched pungi from hg to git.

I converted bodhi's mercurial repo to git, which can be obtained by doing git clone http://lmacken.fedorapeople.org/bodhi.git. How do I go about changing the fedorahosted repo and trac?

I scped the repo over and configured trac. The old hg repo is at /srv/hg/bodhi.old. The last thing is to rename the hgbodhi group to gitbodhi, in order to avoid confusion.

Awesome, thanks for doing this, Ricky!

So, how do we go about renaming the group? I'm currently unable to push any changes to the git repo, I assume until this is done.

Replying to [comment:6 lmacken]:

Awesome, thanks for doing this, Ricky!

So, how do we go about renaming the group? I'm currently unable to push any changes to the git repo, I assume until this is done.
Oops, that was my fault, actually - forgot to chgrp it (so pushes should work now). To rename the group, ssh to db2, sudo su - postgres, psql fas2, and:
{{{
update groups set name='gitbodhi' where name='gitbodhi';
}}}

While you're there, would you mind running these as well?
{{{

As mentioned in ticket #468 - pungi also moved to git.

update groups set name='gitpungi' where name='hgpungi';

The real group is just called gitfas, gitfas2 is empty/unused.

delete from groups where name='gitfas2';
}}}

Replying to [comment:7 ricky]:

Replying to [comment:6 lmacken]:

Awesome, thanks for doing this, Ricky!

So, how do we go about renaming the group? I'm currently unable to push any changes to the git repo, I assume until this is done.
Oops, that was my fault, actually - forgot to chgrp it (so pushes should work now). To rename the group, ssh to db2, sudo su - postgres, psql fas2, and:
{{{
update groups set name='gitbodhi' where name='gitbodhi';
}}}

While you're there, would you mind running these as well?
{{{

As mentioned in ticket #468 - pungi also moved to git.

update groups set name='gitpungi' where name='hgpungi';

The real group is just called gitfas, gitfas2 is empty/unused.

delete from groups where name='gitfas2';
}}}

Done. Thanks, Ricky!

Log in to comment on this ticket.

Metadata