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