diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-11 04:22:52 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-11 04:22:52 +0000 |
commit | 9b8b4b3bfc9b24cd2ac5734242288b418c7ab75b (patch) | |
tree | 29609d065f46cb4a5609d895946d4a4d35b02c83 /lib | |
parent | 6734f91a72129a1b96fb148dbcc59a7d9f88c7e7 (diff) | |
download | redmine-9b8b4b3bfc9b24cd2ac5734242288b418c7ab75b.tar.gz redmine-9b8b4b3bfc9b24cd2ac5734242288b418c7ab75b.zip |
Merged r4683 from trunk (test:scm:setup:mercurial task can be simpler).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4685 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/testing.rake | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 0fd6a19b0..546284767 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -43,12 +43,8 @@ namespace :test do desc "Creates a test mercurial repository"
task :mercurial => :create_dir do
repo_path = "tmp/test/mercurial_repository"
- FileUtils.mkdir_p repo_path
- Dir.chdir repo_path do
- system "hg init"
- system "hg unbundle ../../../test/fixtures/repositories/mercurial_repository.hg"
- system "hg update"
- end
+ bundle_path = "test/fixtures/repositories/mercurial_repository.hg"
+ system "hg clone -U #{bundle_path} #{repo_path}"
end
(supported_scms - [:subversion, :mercurial]).each do |scm|
|