You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/06/18 21:15:55 UTC

[whimsy] branch master updated: += --non-interactive

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f08496  += --non-interactive
5f08496 is described below

commit 5f084964f0b636b0a36f43cbd54428775e6b2341
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jun 18 22:15:54 2017 +0100

    += --non-interactive
---
 lib/whimsy/asf/svn.rb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 4881a2b..edf26e3 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -174,14 +174,14 @@ module ASF
       # N.B. the extra enclosing [] tell _.system not to show their contents on error
       begin
         # create an empty checkout
-        _.system ['svn', 'checkout', '--depth', 'empty',
+        _.system ['svn', 'checkout', '--depth', 'empty', '--non-interactive',
           ['--username', env.user, '--password', env.password],
           `svn info #{dir}`[/URL: (.*)/, 1], tmpdir]
 
         # retrieve the file to be updated (may not exist)
         if basename
           tmpfile = File.join(tmpdir, basename).untaint
-          _.system ['svn', 'update',
+          _.system ['svn', 'update', '--non-interactive',
             ['--username', env.user, '--password', env.password],
             tmpfile]
         else
@@ -208,13 +208,13 @@ module ASF
         if contents and not contents.empty?
           File.write tmpfile, contents
           if not previous_contents
-            _.system ['svn', 'add',
+            _.system ['svn', 'add', '--non-interactive',
               ['--username', env.user, '--password', env.password],
               tmpfile]
           end
         elsif tmpfile and File.file? tmpfile
           File.unlink tmpfile
-          _.system ['svn', 'delete',
+          _.system ['svn', 'delete', '--non-interactive',
             ['--username', env.user, '--password', env.password],
             tmpfile]
         end
@@ -224,7 +224,7 @@ module ASF
           rc = _.system ['svn', 'diff', tmpfile]
         else
           # commit the changes
-          rc = _.system ['svn', 'commit', tmpfile || tmpdir,
+          rc = _.system ['svn', 'commit', tmpfile || tmpdir, '--non-interactive',
             ['--username', env.user, '--password', env.password],
             '--message', msg.untaint]
         end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].