Commit 2cbf6085 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Store the mercurial test repository as a bundle to make it compatible with older hg versions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4676 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent a9eea277
......@@ -40,7 +40,18 @@ namespace :test do
system "gunzip < test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load #{repo_path}"
end
(supported_scms - [:subversion]).each do |scm|
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
end
(supported_scms - [:subversion, :mercurial]).each do |scm|
desc "Creates a test #{scm} repository"
task scm => :create_dir do
system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment