Return-Path: Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: (qmail 44063 invoked from network); 25 Jul 2010 03:49:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jul 2010 03:49:54 -0000 Received: (qmail 99256 invoked by uid 500); 25 Jul 2010 03:49:54 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 99168 invoked by uid 500); 25 Jul 2010 03:49:52 -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 99161 invoked by uid 99); 25 Jul 2010 03:49:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jul 2010 03:49:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Sun, 25 Jul 2010 03:49:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B53C623889B2; Sun, 25 Jul 2010 03:48:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r978973 - in /hbase/trunk: CHANGES.txt src/main/ruby/shell/formatter.rb Date: Sun, 25 Jul 2010 03:48:58 -0000 To: commits@hbase.apache.org From: stack@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100725034858.B53C623889B2@eris.apache.org> Author: stack Date: Sun Jul 25 03:48:58 2010 New Revision: 978973 URL: http://svn.apache.org/viewvc?rev=978973&view=rev Log: HBASE-2815 not able to run the test suite in background because TestShell gets suspended on tty output Modified: hbase/trunk/CHANGES.txt hbase/trunk/src/main/ruby/shell/formatter.rb Modified: hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=978973&r1=978972&r2=978973&view=diff ============================================================================== --- hbase/trunk/CHANGES.txt (original) +++ hbase/trunk/CHANGES.txt Sun Jul 25 03:48:58 2010 @@ -454,6 +454,8 @@ Release 0.21.0 - Unreleased becomes invalid (Benôit Sigoure via Stack) HBASE-2876 HBase hbck: false positive error reported for parent regions that are in offline state in meta after a split + HBASE-2815 not able to run the test suite in background because TestShell + gets suspended on tty output (Alexey Kovyrin via Stack) IMPROVEMENTS HBASE-1760 Cleanup TODOs in HTable Modified: hbase/trunk/src/main/ruby/shell/formatter.rb URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/shell/formatter.rb?rev=978973&r1=978972&r2=978973&view=diff ============================================================================== --- hbase/trunk/src/main/ruby/shell/formatter.rb (original) +++ hbase/trunk/src/main/ruby/shell/formatter.rb Sun Jul 25 03:48:58 2010 @@ -30,13 +30,9 @@ module Shell end def refresh_width() - @max_width = Java::jline.Terminal.getTerminal().getTerminalWidth() - - # the above doesn't work in some terminals - # (such as shell running within emacs) - if @max_width == 0 - @max_width = 100 - end + @max_width = Java::jline.Terminal.getTerminal().getTerminalWidth() if $stdout.tty? + # the above doesn't work in some terminals (such as shell running within emacs) + @max_width = 100 if @max_width.to_i.zero? end # Takes an output stream and a print width.