From 78d9ae9754578cda4b72d7b28a4f707534c15c49 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 6 Jan 2008 17:33:41 +0000 Subject: [PATCH] Fixed: crash when fetching Mercurial changesets if changeset[:files] is nil (same fix as r921). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1045 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/mercurial_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 1b9cab47c..3c905fc0f 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -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