Merged r4683 from trunk (test:scm:setup:mercurial task can be simpler).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4685 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6734f91a72
commit
9b8b4b3bfc
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue