On Thu, May 30, 2013 at 10:11:25PM -0400, Ehsan Akhgari wrote:
> Thanks for starting this conversation, jst.
> 
> As an advocate of git in general, I actually think option #1
> (maintaining both git and hg as first class citizens) makes a lot
> more sense for us.  The benefits of git in my opinion outweigh hg,
> but not to a degree that would warrant paying the cost of switching
> all of our infra to use git directly.  Especially since that I
> believe a two-way mirroring which lets people push from either hg to
> git is extremely easy (the rest is a solved problem
> <https://github.com/mozilla/mozilla-central>.)
> 
> Nicolas (nbp) built <https://github.com/nbp/git-hg-bridge> a while
> ago, and while the existing implementation is not good enough for a
> scale of multiple developers using it, I have had plans to fix that
> (unfortunately I never gotten around to document that...)  I would
> be happy to share more details if needed.

Note that in the meantime, git-remote-hg has considerably improved, to
the point it might just be possible to use git to work directly with our
mercurial (although i haven't tested in recent days). The only caveat
this has is that it does a local mercurial clone locally under the hood,
so if you pull from several mercurial branches, you need a lot of disk
space (and even for one branch, it's wasteful to have both the mercurial
repo and the git repo). It might also be very slow on the first clone.

I started working, a long while ago, on something like git-remote-hg,
but that doesn't need a local clone (talking directly to the mercurial
server), and went as far as being able to
  git clone hg::http://hg.mozilla.org/mozilla-central/
that way, in about the same time it takes to do a mercurial clone. It
however is at a stage where it doesn't handle pushing or incremental
updates, which require more metadata about the mercurial end. The
resulting repo is also not entirely identical to what you get from
hg-git.

Mike
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to