If redmine top directory has .hg, "hg clone" synchronizes all revisions to test repository.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4687
e93f8b46-1217-0410-a6f0-
8f06a7374b81
task :mercurial => :create_dir do\r
repo_path = "tmp/test/mercurial_repository"\r
bundle_path = "test/fixtures/repositories/mercurial_repository.hg"\r
- system "hg clone -U #{bundle_path} #{repo_path}"\r
+ system "hg init #{repo_path}"\r
+ system "hg -R #{repo_path} pull #{bundle_path}"\r
end\r
\r
(supported_scms - [:subversion, :mercurial]).each do |scm|\r