summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-11 08:41:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-11 08:41:11 +0000
commit331cdbed2fe690fcaa20064fb8a71514198347cc (patch)
treeff3b56c8d73663daf9c462854f7d5e18364058d4 /lib/tasks
parenta6f05b5e56fdc9523340c2a7bb8c0ca77317045f (diff)
downloadredmine-331cdbed2fe690fcaa20064fb8a71514198347cc.tar.gz
redmine-331cdbed2fe690fcaa20064fb8a71514198347cc.zip
scm: mercurial: fix r4686 setup mercurial test repository (#7272).
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
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/testing.rake3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake
index 546284767..1f43a1156 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -44,7 +44,8 @@ namespace :test do
task :mercurial => :create_dir do
repo_path = "tmp/test/mercurial_repository"
bundle_path = "test/fixtures/repositories/mercurial_repository.hg"
- system "hg clone -U #{bundle_path} #{repo_path}"
+ system "hg init #{repo_path}"
+ system "hg -R #{repo_path} pull #{bundle_path}"
end
(supported_scms - [:subversion, :mercurial]).each do |scm|