scm: mercurial: fix r4686 setup mercurial test repository (#7272).

If redmine top directory has .hg, "hg clone" synchronizes all revisions to test repository.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4687 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-01-11 08:41:11 +00:00
parent a6f05b5e56
commit 331cdbed2f
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ namespace :test do
task :mercurial => :create_dir do task :mercurial => :create_dir do
repo_path = "tmp/test/mercurial_repository" repo_path = "tmp/test/mercurial_repository"
bundle_path = "test/fixtures/repositories/mercurial_repository.hg" bundle_path = "test/fixtures/repositories/mercurial_repository.hg"
system "hg clone -U #{bundle_path} #{repo_path}" system "hg init #{repo_path}"
system "hg -R #{repo_path} pull #{bundle_path}"
end end
(supported_scms - [:subversion, :mercurial]).each do |scm| (supported_scms - [:subversion, :mercurial]).each do |scm|