Project

General

Profile

Actions

Patch #1607

closed

empty version instead of "Unknown version" for svn

Added by Hiroyuki Iwatsuki over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2008-07-09
Due date:
% Done:

0%

Estimated time:

Description

Hi,

Redmine r1646 failed to get svn property when it failed to get svn version.

NoMethodError (You have a nil object when you didn't expect it!
The error occurred while evaluating nil.<):
    /lib/redmine/scm/adapters/subversion_adapter.rb:112:in `properties'
    /app/models/repository.rb:63:in `properties'
(snip)

Redmine::Scm::Adapters::SubversionAdapter.client_version returns String "Unknown version" when failed to getting svn version.
After that String("Unknown version") compared with Array([1, 5, 0]) at Redmine::Scm::Adapters::SubversionAdapter#properties

        def properties(path, identifier=nil)
          # proplist xml output supported in svn 1.5.0 and higher
          return nil if (self.class.client_version <=> [1, 5, 0]) < 0

I think that Redmine::Scm::Adapters::SubversionAdapter.client_version should return Array instead of String.

Thanks,


Files

redmine-r1646-20080709a.diff (542 Bytes) redmine-r1646-20080709a.diff Hiroyuki Iwatsuki, 2008-07-09 14:25
Actions

Also available in: Atom PDF