[llvm-dev] New LLVM git repository conversion prototype (original) (raw)

Danila Malyutin via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 15 07:58:05 PDT 2018


Great to hear!

Are there some migrations strategies for those who are using llvm-mirror repositories? I’ve noticed that some projects in llvm git prototype not only have different commit SHAs (which is expected, since the commit messages are slightly different due to llvm-svn=N), but also different histories (first lnt commit in llvm-mirror is 2 years older than in prototype).

From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of James Y Knight via llvm-dev Sent: Friday, October 12, 2018 01:28 To: llvm-dev <llvm-dev at lists.llvm.org> Subject: [llvm-dev] New LLVM git repository conversion prototype

TLDR: https://github.com/llvm-git-prototype/<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_llvm-2Dgit-2Dprototype_&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=YgdxWMcdqQPlU9EdetI-xI79G7ouw9_Us0dFsZnFQYU&m=N77kJ4LaWGbhMLDMsmsaWXefS9f6W0IZTDHibv5dCkc&s=K66CatS6_rX7Z84fG40bYi-BFdj1EH-Ge7BuasqHwaQ&e=> exists as a read-only mirror of SVN, and is being updated continuously with a script running on an llvm-project AWS VM.

Let me know what you think.

I had meant to get this prototype finalized 6 months ago, and I must apologize for the delay. I hope this is close to final for what we want our git repository to look like, and that we can move forward with the remainder of the work to convert to git.

At this point, there's no guarantee that the repository won't be rebuilt from scratch with new hashes, if some problem is discovered which requires changing something way back in history. But I hope we're now close to being able to declare a conversion final -- and let people start depending on the hashes being stable.

This conversion uses the "flat monorepo" layout, like the previous existing git monorepo, and as discussed previously. The process generating it is different, which allows a more faithful conversion, including branches. I've also converted a bunch of the auxiliary repositories.

I would request that other people help take charge of the remainder of the work. Most importantly -- making a plan for implementing the rest of the migration. We have https://llvm.org/docs/Proposals/GitHubMove.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_docs_Proposals_GitHubMove.html&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=YgdxWMcdqQPlU9EdetI-xI79G7ouw9_Us0dFsZnFQYU&m=N77kJ4LaWGbhMLDMsmsaWXefS9f6W0IZTDHibv5dCkc&s=qS4wDBMYZgiJajPClPRreKzuXJVsb2635t3auD50xhk&e=>, but I think it'll need significant fleshing out and updating. I'm happy to assist with the rest of the migration, but I'd like to not be primarily responsible for other parts beyond svn->git repository conversion.

Some things that could be discussed in such a plan:

Anyways, what's been done so far is a full SVN->Git repository conversion. This conversion:

Most of the SVN directories are migrated into sub-directories inside the main "llvm" mono-repository:

Some SVN projects are still active, but not part of the LLVM codebase. These get migrated to their own separate git repositories:

A couple inactive projects which are somewhat related to the LLVM codebase, migrated to separate repos:

Legacy projects that are not particularly interesting, migrated to a single separate git repository named "archive":

Projects not migrated from SVN in this conversion, since they're elsewhere already:

-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181015/f73c16d1/attachment.html>



More information about the llvm-dev mailing list