From 080a34143d69ac7f1a61a05217f6a7c0c56ec7db Mon Sep 17 00:00:00 2001 From: Konstantin Shvachko Date: Thu, 24 Nov 2011 21:44:36 +0000 Subject: [PATCH] HADOOP-7861. changes2html.pl generates links to HADOOP, HDFS, and MAPREDUCE jiras. Contributed by Konstantin Shvachko. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1205988 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../hadoop-common/src/main/docs/changes/changes2html.pl | 6 +++++- .../hadoop-hdfs/src/main/docs/changes/changes2html.pl | 6 +++++- hadoop-mapreduce-project/src/docs/changes/changes2html.pl | 6 +++++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 5f05376ee9..94b10bf80a 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -1099,6 +1099,9 @@ Release 0.22.0 - Unreleased HADOOP-7358. Improve log levels when exceptions caught in RPC handler (Todd Lipcon via shv) + HADOOP-7861. changes2html.pl generates links to HADOOP, HDFS, and MAPREDUCE + jiras. (shv) + OPTIMIZATIONS HADOOP-6884. Add LOG.isDebugEnabled() guard for each LOG.debug(..). diff --git a/hadoop-common-project/hadoop-common/src/main/docs/changes/changes2html.pl b/hadoop-common-project/hadoop-common/src/main/docs/changes/changes2html.pl index 67e1826e11..4431e57e00 100755 --- a/hadoop-common-project/hadoop-common/src/main/docs/changes/changes2html.pl +++ b/hadoop-common-project/hadoop-common/src/main/docs/changes/changes2html.pl @@ -242,7 +242,11 @@ $item =~ s:\s*(\([^)"]+?\))\s*$:
$1:; # Separate attribution $item =~ s:\n{2,}:\n

\n:g; # Keep paragraph breaks - $item =~ s{(?:${jira_url_prefix})?(HADOOP-\d+)} # Link to JIRA + $item =~ s{(?:${jira_url_prefix})?(HADOOP-\d+)} # Link to JIRA Common + {$1}g; + $item =~ s{(?:${jira_url_prefix})?(HDFS-\d+)} # Link to JIRA Hdfs + {$1}g; + $item =~ s{(?:${jira_url_prefix})?(MAPREDUCE-\d+)} # Link to JIRA MR {$1}g; print "

  • $item
  • \n"; } diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/docs/changes/changes2html.pl b/hadoop-hdfs-project/hadoop-hdfs/src/main/docs/changes/changes2html.pl index 67e1826e11..4431e57e00 100755 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/docs/changes/changes2html.pl +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/docs/changes/changes2html.pl @@ -242,7 +242,11 @@ $item =~ s:\s*(\([^)"]+?\))\s*$:
    $1:; # Separate attribution $item =~ s:\n{2,}:\n

    \n:g; # Keep paragraph breaks - $item =~ s{(?:${jira_url_prefix})?(HADOOP-\d+)} # Link to JIRA + $item =~ s{(?:${jira_url_prefix})?(HADOOP-\d+)} # Link to JIRA Common + {$1}g; + $item =~ s{(?:${jira_url_prefix})?(HDFS-\d+)} # Link to JIRA Hdfs + {$1}g; + $item =~ s{(?:${jira_url_prefix})?(MAPREDUCE-\d+)} # Link to JIRA MR {$1}g; print "

  • $item
  • \n"; } diff --git a/hadoop-mapreduce-project/src/docs/changes/changes2html.pl b/hadoop-mapreduce-project/src/docs/changes/changes2html.pl index 67e1826e11..4431e57e00 100755 --- a/hadoop-mapreduce-project/src/docs/changes/changes2html.pl +++ b/hadoop-mapreduce-project/src/docs/changes/changes2html.pl @@ -242,7 +242,11 @@ $item =~ s:\s*(\([^)"]+?\))\s*$:
    $1:; # Separate attribution $item =~ s:\n{2,}:\n

    \n:g; # Keep paragraph breaks - $item =~ s{(?:${jira_url_prefix})?(HADOOP-\d+)} # Link to JIRA + $item =~ s{(?:${jira_url_prefix})?(HADOOP-\d+)} # Link to JIRA Common + {$1}g; + $item =~ s{(?:${jira_url_prefix})?(HDFS-\d+)} # Link to JIRA Hdfs + {$1}g; + $item =~ s{(?:${jira_url_prefix})?(MAPREDUCE-\d+)} # Link to JIRA MR {$1}g; print "

  • $item
  • \n"; }