GithubHelp home page GithubHelp logo

jdk9-repotools's Introduction

This repo exists to work around Oracle's OpenJDK project using hg, and using it badly.

flatten.py

  1. git clone hg::...jdk9
  2. for each submodule, git submodule add that into this repo
  3. destory the .gitmodules file (i.e don't commit anything)

This leaves you with a super weird git repo:

$ cat jdk9/.git/config
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
[remote "origin"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[submodule "corba"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9/corba
[submodule "jaxp"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9/jaxp
[submodule "jaxws"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9/jaxws
[submodule "langtools"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9/langtools
[submodule "nashorn"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9/nashorn
[submodule "hotspot"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9/hotspot
[submodule "jdk"]
	url = hg::http://hg.openjdk.java.net/jdk9/jdk9/jdk
% ls jdk9/.git/modules
corba  hotspot  jaxp  jaxws  jdk  langtools  nashorn

Unlike with normal submodules, you can just cd into these things and pull them, and you should.

Once you've pulled everything, you can:

mkdir flattened; (cd flattened; git init)
python3 flatten.py
cd flattened
git reset --hard

Then, you'll have a sane repo!

My copy is: https://github.com/FauxFaux/jdk9-flat

jdk9-repotools's People

Contributors

fauxfaux avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.