You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2013/07/05 01:34:11 UTC

svn commit: r1499887 - /subversion/trunk/tools/dist/backport.pl

Author: danielsh
Date: Thu Jul  4 23:34:11 2013
New Revision: 1499887

URL: http://svn.apache.org/r1499887
Log:
* tools/dist/backport.pl
  (maybe_revert): In interactive mode, call exit() rather than revert().

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=1499887&r1=1499886&r2=1499887&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Thu Jul  4 23:34:11 2013
@@ -381,9 +381,8 @@ sub maybe_revert {
   # This is both a SIGINT handler, and the tail end of main() in normal runs.
   # @_ is 'INT' in the former case and () in the latter.
   delete $SIG{INT} unless @_;
-  return if $YES or not prompt 'Revert? ';
-  revert;
-  exit if @_;
+  revert if !$YES and prompt 'Revert? ';
+  (@_ ? exit : return);
 }
 
 sub warning_summary {