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
+ bundle_path = "test/fixtures/repositories/mercurial_repository.hg"\r
+ system "hg clone -U #{bundle_path} #{repo_path}"\r
end\r
\r
(supported_scms - [:subversion, :mercurial]).each do |scm|\r