-
Notifications
You must be signed in to change notification settings - Fork 37
#feat: Add demo for JEP 357 - Migrate from Mercurial to Git #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,10 @@ public static ArrayList<IDemo> getDemos() { | |
| java16DemoPool.add(new VectorAPIDemo()); | ||
| // JEP 347 | ||
| java16DemoPool.add(new Cpp14FeaturesDemo()); | ||
| // Inside the list/map initialization in the JDK 16 helper file | ||
| // ... other demos ... | ||
| demos.add(new org.javademos.java16.jep357.MercurialToGitMigration()); // JEP 357 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other demos, do not use absolute import path here. Use |
||
| // ... other demos ... | ||
| // JEP 380 | ||
| java16DemoPool.add(new UnixDomainSocketsDemo()); | ||
| // JEP 386 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| package org.javademos.java16.jep357; | ||
|
|
||
| import org.javademos.commons.IDemo; | ||
|
|
||
| /** | ||
| * ## JEP 357: Migrate from Mercurial to Git | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, change to Markdown format as in other demos. Check |
||
| * | ||
| * ### History | ||
| * * JDK 16: Delivered | ||
| * | ||
| * ### Links | ||
| * * [JEP 357](https://openjdk.org/jeps/357) | ||
| * * [JEP 369: Migrate to GitHub](https://openjdk.org/jeps/369) | ||
| * | ||
| * This JEP was purely an infrastructure change for the OpenJDK community. | ||
| * There are no Java language features or APIs to demonstrate. | ||
| */ | ||
| public class MercurialToGitMigration implements IDemo { | ||
|
|
||
| @Override | ||
| public void demo() { | ||
| info(357); | ||
|
|
||
| System.out.println("This JEP was an infrastructure project to migrate the OpenJDK Community's source code repositories."); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The information are correct, but please, do not use |
||
| System.out.println("The migration was from Mercurial (hg) to Git."); | ||
| System.out.println(); | ||
| System.out.println("Key Goals:"); | ||
| System.out.println("1. Migrate all single-repository OpenJDK Projects."); | ||
| System.out.println("2. Preserve all version control history, including tags."); | ||
| System.out.println("3. Port internal tools (like 'jcheck') to work with Git."); | ||
| System.out.println(); | ||
| System.out.println("This change did not introduce any new Java language features or APIs, " + | ||
| "but was a critical step for the community, leading to JEP 369 (Migrate to GitHub)."); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here only
// JEP 375comment should be placed, as for other demos