]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: fix r4686 setup mercurial test repository (#7272).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 11 Jan 2011 08:41:11 +0000 (08:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 11 Jan 2011 08:41:11 +0000 (08:41 +0000)
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

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