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

Wang, Pengfei via llvm-dev llvm-dev at lists.llvm.org
Sat Nov 28 06:29:59 PST 2020


I think you can search "llvm-svn: 258109" in git log directly.

Thanks
Pengfei

From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Zhide Zhou via llvm-dev
Sent: Saturday, November 28, 2020 9:47 PM
To:
Subject: [llvm-dev] How can I obtain a commit of LLVM using a svn revision number?

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/80b32ef4/attachment.html>


More information about the llvm-dev mailing list