Skip to content

Commit

Permalink
scm: mercurial: test:scm:setup:mercurial task can be simpler (#7272).
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4683 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
marutosi committed Jan 11, 2011
1 parent 7b7577c commit 35b9972
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/tasks/testing.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 35b9972

Please sign in to comment.