Project

General

Profile

Actions

Defect #176

closed

hg adapter crash

Added by Bob Kuehne almost 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

not exactly sure why this crashed, but i went ahead and applied the same fix as in #15771 to line 115 in version 1034
of lib/redmine/scm/adapters/mercurial_adapter.rb.

the fix, output from svn diff:
--
Index: lib/redmine/scm/adapters/mercurial_adapter.rb ===================================================================
--- lib/redmine/scm/adapters/mercurial_adapter.rb (revision 1034)
++ lib/redmine/scm/adapters/mercurial_adapter.rb (working copy)
@ -112,7 +112,7 @
:author => changeset[:user],
:time => Time.parse(changeset[:date]),
:message => changeset[:description],
- :paths => changeset[:files].split.collec
t{|path| {:action => 'X', :path => "/#{path}"}}
:paths => changeset[:files].to_s.split.c
ollect{|path| {:action => 'X', :path => "/#{path}"}}
})
end
return nil if $? && $?.exitstatus != 0
--

Actions #1

Updated by Bob Kuehne almost 18 years ago

feh. the wrapping of the pasted diff is wonky. the specific change
is to add a
'.to_s' before the '.split' at line 112 in mercurial_adapter.rb

Actions #2

Updated by Jean-Philippe Lang almost 18 years ago

Thanks, fix committed in r1045.

Actions

Also available in: Atom PDF