Promoting the use of Mercurial; was: Re: gnome dvcs survey results

Arne Babenhauserheide arne_bab at web.de
Mon Jan 12 02:23:29 CST 2009


Am Sonntag 11 Januar 2009 22:20:53 schrieb Theodore Tso:
> You're going to need a local git clone in order to be able to pull new
> git commits into your hg reposition.

I just checked my (self-written) automatic tools, and you're right on that. 
They just do a quick clone to /tmp/git-repo and then convert from there. 

And it won't force git developers to access hg directly, as long as there's a 
script which checks if the correct hg extension is active (and activates it 
otherwise - it should deactivate it afterwards if it activated it). 

So I stand corrected. 
Thank you for clearing my confusion! 

Then the script can just add a "git hg push" command which wraps around the hg 
git utilities. 

I'd even be willing to implement such a git tool (just just for the fun of it 
:) ) as soon as there's a hg git bridge which works similar to hgsubversion. 

I see "works similar" as: 
- hg git pull: gets the new changes
- hg git push: pushes them back
- knows the location of the git clone and can tell it to pull/push when it 
pulls from/pushes to it (repo-config switch). 

I think these commands should suffice for a fully functional bridge. 

Best wishes, 
Arne
-- 
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the 
history of free software.
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)

-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt



More information about the Mercurial mailing list