diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-23 07:57:30 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-23 07:57:30 +0000 |
commit | 20e17f14e7972deee75cf7f43ad77f9b91eee8c5 (patch) | |
tree | e90cb2de616387ee1fd1a2cd270dd11812e2b4be /lib/redmine | |
parent | 83d3192472918e5dade849a57a0559b10aff0bb9 (diff) | |
download | redmine-20e17f14e7972deee75cf7f43ad77f9b91eee8c5.tar.gz redmine-20e17f14e7972deee75cf7f43ad77f9b91eee8c5.zip |
cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in lib/redmine/scm/adapters/subversion_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19180 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/scm/adapters/subversion_adapter.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb index a395df4ae..76e7917fd 100644 --- a/lib/redmine/scm/adapters/subversion_adapter.rb +++ b/lib/redmine/scm/adapters/subversion_adapter.rb @@ -79,6 +79,7 @@ module Redmine end end return nil if $? && $?.exitstatus != 0 + info rescue CommandFailed return nil @@ -102,6 +103,7 @@ module Redmine # Skip directory if there is no commit date (usually that # means that we don't have read access to it) next if entry['kind'] == 'dir' && commit_date.nil? + name = entry['name']['__content__'] entries << Entry.new({:name => URI.unescape(name), :path => ((path.empty? ? "" : "#{path}/") + name), @@ -120,6 +122,7 @@ module Redmine end end return nil if $? && $?.exitstatus != 0 + logger.debug("Found #{entries.size} entries in the repository for #{target(path)}") if logger && logger.debug? entries.sort_by_name end @@ -143,6 +146,7 @@ module Redmine end end return nil if $? && $?.exitstatus != 0 + properties end @@ -182,6 +186,7 @@ module Redmine end end return nil if $? && $?.exitstatus != 0 + revisions end @@ -203,6 +208,7 @@ module Redmine end end return nil if $? && $?.exitstatus != 0 + diff end @@ -216,6 +222,7 @@ module Redmine cat = io.read end return nil if $? && $?.exitstatus != 0 + cat end @@ -227,6 +234,7 @@ module Redmine shellout(cmd) do |io| io.each_line do |line| next unless line =~ %r{^\s*(\d+)\s*(\S+)\s(.*)$} + rev = $1 blame.add_line( $3.rstrip, @@ -239,6 +247,7 @@ module Redmine end end return nil if $? && $?.exitstatus != 0 + blame end |