<div class="gmail_quote">On Thu, Mar 10, 2011 at 2:53 PM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> Just to be clear: we _really_ do not want all the sha's to change for trunk.<br>
</div>Yes. That's why I said there will be other way :)<br>
<br>
In any case - please try clang.git once again. It should contain new<br>
branch/tag layout. If there will be some problems - let me know and<br>
I'll revert to prev. repository.<br></blockquote><div><br></div><div>Perhaps my git-fu is just exceptionally weak, but I'm having difficulties figuring out how to use the new llvm.git repository. </div><div><br>
</div><div>This morning, I did a 'git fetch' and noticed it pulled new branches for the SVN releases and tags. So far so good. Then, I ran 'git svn rebase -l' but no commits were merged. Running a full 'git svn rebase' pulled several SVN revisions and appeared to commit them to my local repository, but username information appears to have been lost. Instead of the usual "Justin Holewinski <<a href="mailto:justin.holewinski@gmail.com">justin.holewinski@gmail.com</a>>", I see "jholewinski <jholewinski@91177308-0d34-0410-b5e6-96231b3b80d8>".</div>
<div><br></div><div>Thinking the new repository layout is just not compatible with the old layout, I performed a fresh clone and did the usual:</div><div><br></div><div><div>$ git config --add remote.origin.fetch '+refs/remotes/git-svn:refs/remotes/git-svn'</div>
<div>$ git fetch</div><div>$ git svn init <a href="https://llvm.org/svn/llvm-project/llvm/trunk">https://llvm.org/svn/llvm-project/llvm/trunk</a></div><div>$ git svn rebase -l</div></div><div><br></div><div>This seemed to work (luckily there were no upstream commits during this time), until I finished a commit and tried a 'git svn dcommit'. It pushed my commit into the SVN repository, then proceeded to pull what seemed like 100+ different SVN revisions and merged them into my local tree. Running 'git log' after the commit showed my commit at the top, and then started with commits from 2001. I was concerned until I verified the problem was with my local repository and not with the upstream SVN repository!</div>
<div><br></div><div>It seems like with the current setup, I need to do a fresh git clone every time a new commit is made upstream. Otherwise, either 'git fetch' or 'git svn rebase -l' messes something up. Clearly I'm doing something wrong.</div>
<div><br></div><div><br></div><div>What am I missing here? Should the new layout affect the git workflow? Could you post a detailed overview of working with LLVM trunk through the git-svn bridge on <a href="http://llvm.org">llvm.org</a>?</div>
<div><br></div><div>I thought maybe running from the svn/trunk branch would help, but that branch seems to contain history only up to 2001.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
--<br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
_______________________________________________<br>
</div>LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>