Project

General

Profile

Actions

Defect #3663

open

Problem with subversion logentry without date nor author.

Added by Pablo Ruiz over 15 years ago. Updated almost 12 years ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2009-07-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

In certain cases (see http://svn.haxx.se/dev/archive-2005-08/0309.shtml) a subversion respository might not send an author nor date xml elements as part of a logentry.

In such situations redmine (0.8.4) fails to read any revision below the failing one..

After a bit of debugging.. I made the following modifications to lib/redmine/scm/adapters/subversion_adapter.rb, in order to make this work:

date = logentry.elements['date']
msg = logentry.elements['msg']
revisions << Revision.new({:identifier => logentry.attributes['revision'],
:author => (logentry.elements['author'] ? logentry.elements['author'].text : ""),
:time => date ? Time.parse(date.text).localtime : nil,
:message => msg ? logentry.elements['msg'].text : "",
:paths => paths
})

Related issues

Related to Redmine - Defect #18754: empty svn logentry crashes revision batch readingNew

Actions
Actions

Also available in: Atom PDF