Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E3F3106DA for ; Wed, 3 Jul 2013 19:27:53 +0000 (UTC) Received: (qmail 32572 invoked by uid 500); 3 Jul 2013 19:27:53 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 32551 invoked by uid 500); 3 Jul 2013 19:27:53 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 32541 invoked by uid 99); 3 Jul 2013 19:27:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 19:27:53 +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, 03 Jul 2013 19:27:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9BDF22388860; Wed, 3 Jul 2013 19:27:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1499530 - /subversion/trunk/tools/dist/backport.pl Date: Wed, 03 Jul 2013 19:27:29 -0000 To: commits@subversion.apache.org From: danielsh@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130703192729.9BDF22388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: danielsh Date: Wed Jul 3 19:27:29 2013 New Revision: 1499530 URL: http://svn.apache.org/r1499530 Log: * tools/dist/backport.pl: Reorder function definitions. No functional change. Modified: subversion/trunk/tools/dist/backport.pl Modified: subversion/trunk/tools/dist/backport.pl URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/backport.pl?rev=1499530&r1=1499529&r2=1499530&view=diff ============================================================================== --- subversion/trunk/tools/dist/backport.pl (original) +++ subversion/trunk/tools/dist/backport.pl Wed Jul 3 19:27:29 2013 @@ -240,6 +240,16 @@ sub parse_entry { ); } +sub maybe_revert { + # This is both a SIGINT handler, and the tail end of main() in normal runs. + return if $YES or not prompt 'Revert? '; + copy $STATUS, "$STATUS.$$"; + system $SVN, qw/revert -q/, $STATUS; + system $SVN, qw/revert -R ./; + move "$STATUS.$$", $STATUS; + exit if @_; +} + sub handle_entry { my $in_approved = shift; my %entry = parse_entry @_; @@ -286,16 +296,6 @@ sub handle_entry { 1; } -sub maybe_revert { - # This is both a SIGINT handler, and the tail end of main() in normal runs. - return if $YES or not prompt 'Revert? '; - copy $STATUS, "$STATUS.$$"; - system $SVN, qw/revert -q/, $STATUS; - system $SVN, qw/revert -R ./; - move "$STATUS.$$", $STATUS; - exit if @_; -} - sub main { usage, exit 0 if @ARGV;