From e8693d08b21d39ff3201cc7a053ef14329d38a6a Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Fri, 12 Oct 2012 01:17:10 +0000 Subject: [PATCH] HADOOP-8918. test-patch.sh is parsing modified files wrong. Contributed by Raja Aluri. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1397411 13f79535-47bb-0310-9956-ffa450edef68 --- dev-support/test-patch.sh | 2 +- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index 52728896941..e34e0a14c2a 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -763,7 +763,7 @@ findModule (){ findModules () { # Come up with a list of changed files into $TMP TMP=/tmp/tmp.paths.$$ - $GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort | uniq > $TMP + $GREP '^+++ \|^--- ' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort | uniq > $TMP # if all of the lines start with a/ or b/, then this is a git patch that # was generated without --no-prefix diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 640a404eccd..133abdbee11 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -259,6 +259,9 @@ Trunk (Unreleased) HADOOP-8839. test-patch's -1 on @author tag presence doesn't cause a -1 to the overall result (harsh) + HADOOP-8918. test-patch.sh is parsing modified files wrong. + (Raja Aluri via suresh) + OPTIMIZATIONS HADOOP-7761. Improve the performance of raw comparisons. (todd)