Author: suresh
Date: Fri Oct 12 01:17:10 2012
New Revision: 1397411
URL: http://svn.apache.org/viewvc?rev=1397411&view=rev
Log:
HADOOP-8918. test-patch.sh is parsing modified files wrong. Contributed by Raja
Aluri.
Modified:
hadoop/common/trunk/dev-support/test-patch.sh
Modified: hadoop/common/trunk/dev-support/test-patch.sh
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/dev-support/test-patch.sh?rev=1397411&r1=1397410&r2=1397411&view=diff
==============================================================================
--- hadoop/common/trunk/dev-support/test-patch.sh (original)
+++ hadoop/common/trunk/dev-support/test-patch.sh Fri Oct 12 01:17:10 2012
@@ -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