hg-git plugin, and git-fast export

Arne Babenhauserheide arne_bab at web.de
Fri Jan 22 14:40:59 UTC 2016


Am Freitag, 22. Januar 2016, 12:25:15 schrieb Uwe Brauer:
> But what's about the hg-git plugin, could it, say, work with some of the
> lisp projects which reside in github using that plugin and *not* screw
> up things for the other git users? Does anybody has experience with that
> plugin used in that way?

I’m using hg-git almost daily for contributing to Freenet (on github,
sadly). It’s not as convenient as contributing to a hg project (mostly
clone, push and pull are quite a bit slower), but it works — and hg
with hg-git is easier to use than git.

As a hint: Create a bridge repository which is responsible for all
interaction with git repos. Then clone your work repository from that.

repo-bridge/ ⇔ git
repo-work/ ⇔ repo-bridge

Just code in the work repo, create bookmarks and push them to the bridge.

hg boo what-git-will-see-as-branch -r REV
hg push -B what-git-will-see-as-branch; hg -R ~/repo-bridge push -r what-git-will-see-as-branch

and pull

hg -R ~/repo-bridge pull; hg pull

> The case of collaboration seem less problematic since there branching
> and merging does not occur that often.

Branching and merging mostly works with hg-git, as long as you keep in
mind that git branches are just bookmarks and have no intrinsic
meaning.

Best wishes,
Arne
--
Ich hab' nichts zu verbergen – hab ich gedacht: 

- http://draketo.de/licht/lieder/ich-hab-nichts-zu-verbergen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 299 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20160122/748e7b5f/attachment.asc>


More information about the Mercurial mailing list