• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Mission Control
  4. Working with Mercurial in the JMC Project

Working with Mercurial in the JMC Project

  • Created by Marcus Hirt on Dec 03, 2018

This page contains some tips and tricks for working with Mercurial in the JMC Project for Committers.

Getting Started

  1. First install Mercurial (different on different platforms)
  2. Next ensure that you have an OpenJDK user (http://openjdk.java.net/census)
    If you need an OpenJDK user name and/or generate a key, follow instructions here: http://openjdk.java.net/guide/producingChangeset.html#jdkUserName 
  3. Next install the defpath plug-in (http://openjdk.java.net/projects/code-tools/defpath/)
  4. Next create a ~/.hgrc file and fill it out according to the example below.
  5. Next clone the JMC source: 
    hg clone http://hg.openjdk.java.net/jmc/jmc


You may also want to set up so that you can use p4merge for merging and diffing, and also use a template for commits. 

If the change comes from a non-Author, don't forget to set "Contributed-by:".

To diff using p4merge, simply use the command:

 hg p4diff 

To initialise defpath, after installed and configured, run:

 hg defpath -d

Review

Send either a unified diff or a webrev to the jmc-dev@openjdk.java.net mailing list


Webrev short hand:

ksh /usr/local/bin/webrev.ksh → generates the webrev 

rsync -avz <folder (named as the bugid) containing the rev> <openjdkid>@cr.openjdk.java.net:~/


Getting and applying a patch from a webrev:

# Update your local clone 
cd JMC_ROOT
hg pull
hg update 

# Download the patch

cd <some folder>
wget http://cr.openjdk.java.net/~hirt/JMC-5922/webrev.1/jmc.patch

# Apply the patch 

cd JMC_ROOT
hg import --no-commit <some folder>/jmc.patch

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 172, "requestCorrelationId": "c9421196e51dff6a"}