@@ -43,12 +43,8 namespace :test do | |||||
43 | desc "Creates a test mercurial repository" |
|
43 | desc "Creates a test mercurial repository" | |
44 | task :mercurial => :create_dir do |
|
44 | task :mercurial => :create_dir do | |
45 | repo_path = "tmp/test/mercurial_repository" |
|
45 | repo_path = "tmp/test/mercurial_repository" | |
46 | FileUtils.mkdir_p repo_path |
|
46 | bundle_path = "test/fixtures/repositories/mercurial_repository.hg" | |
47 | Dir.chdir repo_path do |
|
47 | system "hg clone -U #{bundle_path} #{repo_path}" | |
48 | system "hg init" |
|
|||
49 | system "hg unbundle ../../../test/fixtures/repositories/mercurial_repository.hg" |
|
|||
50 | system "hg update" |
|
|||
51 | end |
|
|||
52 | end |
|
48 | end | |
53 |
|
49 | |||
54 | (supported_scms - [:subversion, :mercurial]).each do |scm| |
|
50 | (supported_scms - [:subversion, :mercurial]).each do |scm| |
General Comments 0
You need to be logged in to leave comments.
Login now