system "gunzip < test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load #{repo_path}"\r
end\r
\r
- (supported_scms - [:subversion]).each do |scm|\r
+ desc "Creates a test mercurial repository"\r
+ task :mercurial => :create_dir do\r
+ repo_path = "tmp/test/mercurial_repository"\r
+ FileUtils.mkdir_p repo_path\r
+ Dir.chdir repo_path do\r
+ system "hg init"\r
+ system "hg unbundle ../../../test/fixtures/repositories/mercurial_repository.hg"\r
+ system "hg update"\r
+ end\r
+ end\r
+ \r
+ (supported_scms - [:subversion, :mercurial]).each do |scm|\r
desc "Creates a test #{scm} repository"\r
task scm => :create_dir do\r
system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test"\r