Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A94BE11115 for ; Wed, 2 Apr 2014 02:21:01 +0000 (UTC) Received: (qmail 16914 invoked by uid 500); 2 Apr 2014 02:21:00 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 16833 invoked by uid 500); 2 Apr 2014 02:21:00 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 16826 invoked by uid 99); 2 Apr 2014 02:21:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 02:21:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 02:20:59 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8BEE9238889B; Wed, 2 Apr 2014 02:20:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1583858 - /hbase/trunk/dev-support/test-patch.sh Date: Wed, 02 Apr 2014 02:20:39 -0000 To: commits@hbase.apache.org From: tedyu@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140402022039.8BEE9238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tedyu Date: Wed Apr 2 02:20:39 2014 New Revision: 1583858 URL: http://svn.apache.org/r1583858 Log: HBASE-10889 test-patch.sh should exclude thrift generated code from long line detection Modified: hbase/trunk/dev-support/test-patch.sh Modified: hbase/trunk/dev-support/test-patch.sh URL: http://svn.apache.org/viewvc/hbase/trunk/dev-support/test-patch.sh?rev=1583858&r1=1583857&r2=1583858&view=diff ============================================================================== --- hbase/trunk/dev-support/test-patch.sh (original) +++ hbase/trunk/dev-support/test-patch.sh Wed Apr 2 02:20:39 2014 @@ -601,7 +601,7 @@ checkLineLengths () { #see http://en.wikipedia.org/wiki/Diff#Unified_format MAX_LINE_LENGTH_PATCH=`expr $MAX_LINE_LENGTH + 1` - lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | grep -v "com.google.protobuf." | grep -v "hbase.protobuf.generated" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len' | head -n 10` + lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | grep -v "org.apache.thrift." | grep -v "com.google.protobuf." | grep -v "hbase.protobuf.generated" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len' | head -n 10` ll=`echo "$lines" | wc -l` if [[ "$ll" -gt "1" ]]; then JIRA_COMMENT="$JIRA_COMMENT