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 fe66185  Allow quick refresh of listings for local testing
fe66185 is described below

commit fe6618567f24a265508b0a7b09aa98c05a58c35f
Author: Sebb <[email protected]>
AuthorDate: Sat Jul 11 13:37:49 2020 +0100

    Allow quick refresh of listings for local testing
---
 Rakefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Rakefile b/Rakefile
index 914c694..6270c16 100644
--- a/Rakefile
+++ b/Rakefile
@@ -114,7 +114,7 @@ task :config do
 end
 
 namespace :svn do
-  task :update => :config do
+  task :update, [:listonly] => :config do |task, args|
     # Include all
     svnrepos = ASF::SVN.repo_entries(true) || {}
 
@@ -157,6 +157,7 @@ namespace :svn do
             end
           end
 
+          next if args.listonly == 'skip'
           if noCheckout
             puts "Skipping" if depth == 'skip' # Must agree with 
monitors/svn.rb
             next
@@ -193,10 +194,10 @@ namespace :svn do
                   # Also update '.' so parent directory shows last changed 
revision for status/svn page
                   if files
                     svncmd = "svn update . #{files.join(' ')}"
-                    puts "#{PREFIX} #{svncmd}"
                   else
                     svncmd = 'svn update'
                   end
+                  puts "#{PREFIX} #{svncmd}"
                   pid = Process.spawn(svncmd, out: w, err: [:child, :out])
                   w.close
 

Reply via email to