From: Toshi MARUYAMA Date: Tue, 11 Jan 2011 04:18:08 +0000 (+0000) Subject: scm: mercurial: test:scm:setup:mercurial task can be simpler (#7272). X-Git-Tag: 1.2.0~1099 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35b9972c8199bb273007388db3b9cb71b7febe0b;p=redmine.git scm: mercurial: test:scm:setup:mercurial task can be simpler (#7272). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4683 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 0fd6a19b0..546284767 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -43,12 +43,8 @@ namespace :test do desc "Creates a test mercurial repository" task :mercurial => :create_dir do repo_path = "tmp/test/mercurial_repository" - FileUtils.mkdir_p repo_path - Dir.chdir repo_path do - system "hg init" - system "hg unbundle ../../../test/fixtures/repositories/mercurial_repository.hg" - system "hg update" - end + bundle_path = "test/fixtures/repositories/mercurial_repository.hg" + system "hg clone -U #{bundle_path} #{repo_path}" end (supported_scms - [:subversion, :mercurial]).each do |scm|