]> source.dussan.org Git - redmine.git/commitdiff
Fixed: crash when fetching Mercurial changesets if changeset[:files] is nil (same...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 6 Jan 2008 17:33:41 +0000 (17:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 6 Jan 2008 17:33:41 +0000 (17:33 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1045 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index 1b9cab47c95737474dad9b628703a563c6a1e14f..3c905fc0f168709c3a0248c9ced84594393e1892 100644 (file)
@@ -112,7 +112,7 @@ module Redmine
                                        :author => changeset[:user],
                                        :time => Time.parse(changeset[:date]),
                                        :message => changeset[:description],
-                                       :paths => changeset[:files].split.collect{|path| {:action => 'X', :path => "/#{path}"}}
+                                       :paths => changeset[:files].to_s.split.collect{|path| {:action => 'X', :path => "/#{path}"}}
             })
           end
           return nil if $? && $?.exitstatus != 0