Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 24
- Log:
Initial import of Collaboa 0.5.6 from downloaded Tarball. Collaboa is
a Ruby On Rails based bug tracker and SVN repository browsing tool.
- Author:
- adh
- Date:
- Mon Jul 24 21:54:39 +0100 2006
- Size:
- 1162 Bytes
1 | require "fileutils" |
2 | require 'test/unit' |
3 | |
4 | |
5 | $:.unshift(File.dirname(__FILE__) + '/../lib') |
6 | require 'action_subversion' |
7 | |
8 | module ActionSubversionTestUtil |
9 | |
10 | def setup_repos |
11 | @author = ENV["USER"] || "sample-user" |
12 | @password = "sample-password" |
13 | @realm = "sample realm" |
14 | @repos_path = File.join(Dir.pwd, "repos_for_tests") |
15 | @full_repos_path = File.expand_path(@repos_path) |
16 | setup_repository(@repos_path) |
17 | @repos = Svn::Repos.open(@repos_path) |
18 | @fs = @repos.fs |
19 | add_files_to_repos |
20 | |
21 | ActionSubversion::Base.repository_path = @full_repos_path |
22 | #ActionSubversion::Base.connect |
23 | end |
24 | |
25 | def teardown_repos |
26 | #ActionSubversion::Base.close_connection |
27 | teardown_repository(@repos_path) |
28 | FileUtils.rm_rf(@full_repos_path) # repos |
29 | end |
30 | |
31 | def setup_repository(path, config={}, fs_config={}) |
32 | FileUtils.mkdir_p(File.dirname(path)) |
33 | Svn::Repos.create(path, config, fs_config) |
34 | #`svnadmin create #{path}` |
35 | end |
36 | |
37 | def teardown_repository(path) |
38 | Svn::Repos.delete(path) |
39 | end |
40 | |
41 | def add_files_to_repos |
42 | `cat #{File.dirname(__FILE__)}/fixtures/data_for_tests.svn|svnadmin load #{@full_repos_path}` |
43 | end |
44 | |
45 | end |