Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 120C2D588 for ; Thu, 11 Oct 2012 23:29:06 +0000 (UTC) Received: (qmail 94493 invoked by uid 500); 11 Oct 2012 23:29:04 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 94325 invoked by uid 500); 11 Oct 2012 23:29:03 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 94073 invoked by uid 99); 11 Oct 2012 23:29:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 23:29:03 +0000 Date: Thu, 11 Oct 2012 23:29:03 +0000 (UTC) From: "Raja Aluri (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <1199701590.33820.1349998143697.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (HADOOP-8918) devsetup/test-patch.sh is parsing modified files wrong MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Raja Aluri created HADOOP-8918: ---------------------------------- Summary: devsetup/test-patch.sh is parsing modified files wrong Key: HADOOP-8918 URL: https://issues.apache.org/jira/browse/HADOOP-8918 Project: Hadoop Common Issue Type: Bug Components: build Affects Versions: 2.0.2-alpha Reporter: Raja Aluri Fix For: 2.0.3-alpha devsetup/test-patch.sh is parsing modified files wrong from the patch. In test-patch.sh script, for running findbugs command, it is trying to find out the modified files by doing the following command {code} $GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort | uniq > $TMP {code} A patch file can have an entry with xml comments removed, which would match that to be a filename. If you look at the last line of the below text, it would match the filename to be '^M' {code} -^M -^M {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira