瀏覽代碼

HADOOP-11928. Test-patch check for @author tags incorrectly flags removal of @author tags (Kengo Seki via aw)

Allen Wittenauer 10 年之前
父節點
當前提交
32cc3139e3
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 1 1
      dev-support/test-patch.sh
  2. 3 0
      hadoop-common-project/hadoop-common/CHANGES.txt

+ 1 - 1
dev-support/test-patch.sh

@@ -1495,7 +1495,7 @@ function check_author
     return 0
   fi
 
-  authorTags=$("${GREP}" -c -i '@author' "${PATCH_DIR}/patch")
+  authorTags=$("${GREP}" -c -i '^[^-].*@author' "${PATCH_DIR}/patch")
   echo "There appear to be ${authorTags} @author tags in the patch."
   if [[ ${authorTags} != 0 ]] ; then
     add_jira_table -1 @author \

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -653,6 +653,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-9729. The example code of org.apache.hadoop.util.Tool is incorrect
     (hellojinjie via jlowe)
 
+    HADOOP-11928. Test-patch check for @author tags incorrectly flags
+    removal of @author tags (Kengo Seki via aw)
+
 Release 2.7.1 - UNRELEASED
 
   INCOMPATIBLE CHANGES