|
1 | NO CONTENT: new file 100644, binary diff hidden |
@@ -40,7 +40,18 namespace :test do | |||
|
40 | 40 | system "gunzip < test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load #{repo_path}" |
|
41 | 41 | end |
|
42 | 42 | |
|
43 | (supported_scms - [:subversion]).each do |scm| | |
|
43 | desc "Creates a test mercurial repository" | |
|
44 | task :mercurial => :create_dir do | |
|
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 | |
|
52 | end | |
|
53 | ||
|
54 | (supported_scms - [:subversion, :mercurial]).each do |scm| | |
|
44 | 55 | desc "Creates a test #{scm} repository" |
|
45 | 56 | task scm => :create_dir do |
|
46 | 57 | system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test" |
|
1 | NO CONTENT: file was removed, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now