[llvm-dev] How can I obtain a commit of LLVM using a svn revision number?

Zhide Zhou via llvm-dev llvm-dev at lists.llvm.org
Sat Nov 28 05:46:49 PST 2020


Hi, developers,
For some reasons, I want to obtain some old commits of LLVM. However, I only know the svn revision numbers of these commits of LLVM.
I tried the command "svn co https://llvm.org/svn/llvm-project/llvm/trunk llvm" listed in "Getting Started with the LLVM System", but the server seems to be not working.
I always get the following message. 
"svn: E000104: Error running context: Connection reset by peer"


I also try the commands listed in "Moving LLVM Projects to GitHub",
"
git clone https://llvm.org/git/llvm.git
cd llvm/
git svn init https://llvm.org/svn/llvm-project/llvm/trunk --username=<username>
git config svn-remote.svn.fetch :refs/remotes/origin/master
git svn rebase -l
git checkout `git svn find-rev -B r258109`
cd tools
git clone https://llvm.org/git/clang.git
cd clang/
git svn init https://llvm.org/svn/llvm-project/clang/trunk --username=<username>
git config svn-remote.svn.fetch :refs/remotes/origin/master
git svn rebase -l
git checkout `git svn find-rev -B r258109`
"
but it is still not working. When I execute the command "git svn rebase -l" for clang, I get the following message.
"Unable to determine upstream SVN information from working tree history"


So is there any way to obtain special commit of LLVM using a svn revision number?


Best,
Zhide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201128/15bc38ab/attachment.html>


More information about the llvm-dev mailing list