> git clone git://github.com/earl/llvm-mirror.git llvm > cd llvm > git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' > git fetch > git svn init https://llvm.org/svn/llvm-project/llvm/trunk > git svn rebase --localThis one worked perfectly. Thanks! I tried the same with the llvm-gcc-4.2 mirror, but "git svn rebase --local" is running for more than 1h with no output. Do I have to do something special for git://repo.or.cz/llvm-gcc-4.2.git? Thanks, -- Rafael Avila de Espindola Google | Gordon House | Barrow Street | Dublin 4 | Ireland Registered in Dublin, Ireland | Registration Number: 368047
Hello, Rafael> I tried the same with the llvm-gcc-4.2 mirror, but "git svn rebase > --local" is running for > more than 1h with no output. Do I have to do something special for > git://repo.or.cz/llvm-gcc-4.2.git?That's pretty strange. However this repository is large and contains many files, maybe first run will be long due to need of regeneration of metadata, etc. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
On Tue Aug 04 20:56:18 +0200 2009, Rafael Espindola wrote:> > git clone git://github.com/earl/llvm-mirror.git llvm > > cd llvm > > git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' > > git fetch > > git svn init https://llvm.org/svn/llvm-project/llvm/trunk > > git svn rebase --local > > This one worked perfectly. Thanks!> Do I have to do something special for > git://repo.or.cz/llvm-gcc-4.2.git?Yes, my bad, the instructions were a bit too specific to my Github mirror. The following scheme bootstraps git-svn and works with all mirrors, including those on repo.or.cz: mkdir llvm-gcc-4.2 cd llvm-gcc-4.2 git init git pull git://repo.or.cz/llvm-gcc-4.2.git master:remotes/git-svn git svn init https://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk git svn rebase --local -- Regards, Andreas
> That's pretty strange. However this repository is large and contains > many files, maybe first run will be long due to need of regeneration > of metadata, etc.One difference I noticed is that in the llvm repository (the one in github) "git branch -r" lists a git-svn branch that is missing in llvm-gcc-4.2. I am not sure how git-svn works. Is that branch required? Cheers, -- Rafael Avila de Espindola Google | Gordon House | Barrow Street | Dublin 4 | Ireland Registered in Dublin, Ireland | Registration Number: 368047
> Yes, my bad, the instructions were a bit too specific to my Github > mirror. The following scheme bootstraps git-svn and works with all > mirrors, including those on repo.or.cz: > > mkdir llvm-gcc-4.2 > cd llvm-gcc-4.2 > git init > git pull git://repo.or.cz/llvm-gcc-4.2.git master:remotes/git-svn > git svn init https://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk > git svn rebase --localThis works nicely, but I can only use "git svn rebase" for updating. Is that I way I could use both "git pull" and "git svn rebase"? I tried to adapt http://gcc.gnu.org/wiki/GitMirror, but I am lost. What I tried was adding [remote "origin"] url = git://repo.or.cz/clang.git fetch = master:remotes/git-svn to the config file. It works until I do the first "git svn rebase". After that I get>From git://repo.or.cz/clang! [rejected] master -> git-svn (non fast forward)> -- > Regards, > AndreasCheers, -- Rafael Ávila de Espíndola