subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1500296 - /subversion/trunk/tools/dist/backport.pl
Date Sat, 06 Jul 2013 15:24:44 GMT
Author: danielsh
Date: Sat Jul  6 15:24:43 2013
New Revision: 1500296

URL: http://svn.apache.org/r1500296
Log:
backport.pl: warn of local mods to STATUS in interactive mode.  This matters
for the "Enter votes" workflow.

* tools/dist/backport.pl
  (prompt): Grow dontprint parameter.
  (main): Warn of local STATUS mods in interactive mode.

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=1500296&r1=1500295&r2=1500296&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Sat Jul  6 15:24:43 2013
@@ -117,7 +117,7 @@ sub prompt {
   die "$0: called prompt() in non-interactive mode!" if $YES;
   my $answer = $getchar->();
   $answer .= $getchar->() if exists $args{extra} and $answer =~ $args{extra};
-  say "";
+  say "" unless $args{dontprint};
   return $args{verbose}
          ? $answer
          : ($answer =~ /^y/i) ? 1 : 0;
@@ -509,7 +509,12 @@ sub main {
   # ### TODO: both here and in merge(), unlink files that previous merges added
   # When running from cron, there shouldn't be local mods.  (For interactive
   # usage, we preserve local mods to STATUS.)
-  die "Local mods to STATUS file $STATUS" if $YES and `$SVN status -q $STATUS`;
+  if (`$SVN status -q $STATUS`) {
+    die  "Local mods to STATUS file $STATUS" if $YES;
+    warn "Local mods to STATUS file $STATUS";
+    system $SVN, qw/diff --/, $STATUS;
+    prompt "Press the 'any' key to continue...\n", dontprint => 1;
+  }
 
   # Skip most of the file
   $/ = ""; # paragraph mode



Mime
View raw message