summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:05:35 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:05:35 +0000
commita7aee902f2411599305b804a3e9db086c2030c11 (patch)
treee2bc3e3232097e02b37cfde21de3c669620c03ff /lib
parent5bb06ae42d53adb03d370a48ef7eebd8d420392c (diff)
downloadredmine-a7aee902f2411599305b804a3e9db086c2030c11.tar.gz
redmine-a7aee902f2411599305b804a3e9db086c2030c11.zip
scm: subversion: code clean up model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5429 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 2b800ea0d..de69cc077 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -251,9 +251,9 @@ module Redmine
return nil if $? && $?.exitstatus != 0
blame
end
-
+
private
-
+
def credentials_string
str = ''
str << " --username #{shell_quote(@login)}" unless @login.blank?
@@ -261,9 +261,10 @@ module Redmine
str << " --no-auth-cache --non-interactive"
str
end
-
+
# Helper that iterates over the child elements of a xml node
- # MiniXml returns a hash when a single child is found or an array of hashes for multiple children
+ # MiniXml returns a hash when a single child is found
+ # or an array of hashes for multiple children
def each_xml_element(node, name)
if node && node[name]
if node[name].is_a?(Hash)