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 2020/06/27 12:14:35 UTC
[whimsy] branch master updated: Rename multiUpdate to agree with
svn_
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 4ef06a9 Rename multiUpdate to agree with svn_
4ef06a9 is described below
commit 4ef06a9c275eeae4881d8339bf31392685aea3cc
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jun 27 13:12:52 2020 +0100
Rename multiUpdate to agree with svn_
---
lib/whimsy/asf/svn.rb | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index d4157c4..a5ebcdb 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -505,6 +505,13 @@ module ASF
# update a file or directory in SVN, working entirely in a temporary
# directory
# Intended for use from GUI code
+ #
+ # path - the path to be used, directory or single file
+ # msg - commit message
+ # env - environment (queried for user and password)
+ # _ - wunderbar context
+ # options - hash of:
+ # :dryrun - show command (excluding credentials), without executing it
def self.update(path, msg, env, _, options={})
if File.directory? path
dir = path
@@ -657,7 +664,7 @@ module ASF
# env - for username and password
# _ - Wunderbar context
# For example:
- # ASF::SVN.multiUpdate(path,message,env,_) do |text|
+ # ASF::SVN.multiUpdate_(path,message,env,_) do |text|
# out = '...'
# extra = []
# url1 = 'https://svn.../' # etc
@@ -665,7 +672,7 @@ module ASF
# extra << ['rm',url3]
# [out, extra]
# end
- def self.multiUpdate(path, msg, env, _, options = {})
+ def self.multiUpdate_(path, msg, env, _, options = {})
require 'tempfile'
tmpdir = Dir.mktmpdir.untaint
if File.file? path