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 3bb7f68  Allow override of svn config for testing
3bb7f68 is described below

commit 3bb7f68922ed6660c6ce49a188d99f3c027f7201
Author: Sebb <[email protected]>
AuthorDate: Fri Jul 10 12:58:30 2020 +0100

    Allow override of svn config for testing
---
 lib/whimsy/asf/config.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/whimsy/asf/config.rb b/lib/whimsy/asf/config.rb
index 09d3431..386cfa8 100644
--- a/lib/whimsy/asf/config.rb
+++ b/lib/whimsy/asf/config.rb
@@ -123,6 +123,12 @@ module ASF
     def self.setroot(path)
       @root = path
     end
+    # Testing only: override svn config
+    # path must end in /*
+    def self.setsvnroot(path)
+      raise RuntimeError "Invalid path: #{path}" unless path.end_with? '/*'
+      @config[:svn] = path
+    end
   end
 
 end

Reply via email to