]> source.dussan.org Git - redmine.git/commitdiff
Merged r4687 from trunk (fix setup mercurial test repository).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 11 Jan 2011 08:46:27 +0000 (08:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 11 Jan 2011 08:46:27 +0000 (08:46 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4689 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/testing.rake

index 546284767b952d3601fb34bb0b96d732377805ad..1f43a11568d154d22d7fa364da92265cd71dfc6b 100644 (file)
@@ -44,7 +44,8 @@ namespace :test do
       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