Defect #176
closedhg adapter crash
0%
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
--