git mirror

Do pushes to the LLVM git mirror get forwarded to the svn trunk
automatically? For various reasons it may be more convenient
for me to work on LLVM through git but I don't want to go through
a lot of pain to send patches to trunk via git. It should be
easy.

Does anyone do their primary development via the git mirror? How
well does it work?

                          -Dave

Hi David,

I develop on LLVM and a number of subprojects using git. The mirror
is one way so I don't think it would work to push there even if
you had access. I use the git mirror primarily as a fast means of
fetching the latest commits, but for committing I use git-svn.

First I initialised git-svn:

git svn init https://llvm.org/svn/llvm-project/llvm/trunk
git update-ref refs/remotes/git-svn earl/master
  # "earl" is my remote for git://github.com/earl/llvm-mirror.git
git svn fetch

This is what I do to prepare to commit:

git fetch earl
git update-ref refs/remotes/git-svn earl/master
git svn fetch # this will fetch any commits less than an hour old
git rebase git-svn

Then I use "git svn dcommit" to commit. You can probably script some
of this if you like.

Hope that helps.

Thanks,

Hello, David

Do pushes to the LLVM git mirror get forwarded to the svn trunk
automatically?

No, it's one-way due to many reasons. However you can use it to
"bootstrap" git-svn metadata and do commits via the git-svn
facilities.

Anton Korobeynikov <anton@korobeynikov.info> writes:

Hello, David

Do pushes to the LLVM git mirror get forwarded to the svn trunk
automatically?

No, it's one-way due to many reasons. However you can use it to
"bootstrap" git-svn metadata and do commits via the git-svn
facilities.

Ah, then it won't work so well. I was hoping to do git-svn on our end
so I could do easier merges between our code and upstream. git-svn
can't be used in a double-ended fasion. I need a "native" git on the
LLVM side (or our side, neither of which will happen for a very, very
long time).

                              -Dave