rscm 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +198 -0
- data/Rakefile +118 -0
- data/ext/rscm.jar +0 -0
- data/lib/rscm.rb +10 -0
- data/lib/rscm/abstract_log_parser.rb +49 -0
- data/lib/rscm/abstract_scm.rb +229 -0
- data/lib/rscm/changes.rb +271 -0
- data/lib/rscm/cvs/cvs.rb +363 -0
- data/lib/rscm/cvs/cvs_log_parser.rb +161 -0
- data/lib/rscm/darcs/darcs.rb +69 -0
- data/lib/rscm/line_editor.rb +46 -0
- data/lib/rscm/logging.rb +5 -0
- data/lib/rscm/monotone/monotone.rb +107 -0
- data/lib/rscm/mooky/mooky.rb +13 -0
- data/lib/rscm/parser.rb +39 -0
- data/lib/rscm/path_converter.rb +92 -0
- data/lib/rscm/perforce/perforce.rb +415 -0
- data/lib/rscm/starteam/starteam.rb +99 -0
- data/lib/rscm/svn/svn.rb +337 -0
- data/lib/rscm/svn/svn_log_parser.rb +134 -0
- data/lib/rscm/time_ext.rb +125 -0
- data/test/rscm/apply_label_scm_tests.rb +26 -0
- data/test/rscm/changes_fixture.rb +20 -0
- data/test/rscm/changes_test.rb +129 -0
- data/test/rscm/cvs/cvs_log_parser_test.rb +575 -0
- data/test/rscm/cvs/cvs_test.rb +22 -0
- data/test/rscm/darcs/darcs_test.rb +14 -0
- data/test/rscm/difftool_test.rb +40 -0
- data/test/rscm/file_ext.rb +12 -0
- data/test/rscm/generic_scm_tests.rb +282 -0
- data/test/rscm/line_editor_test.rb +76 -0
- data/test/rscm/mockit.rb +130 -0
- data/test/rscm/mockit_test.rb +117 -0
- data/test/rscm/monotone/monotone_test.rb +19 -0
- data/test/rscm/mooky/mooky_test.rb +14 -0
- data/test/rscm/parser_test.rb +47 -0
- data/test/rscm/path_converter_test.rb +52 -0
- data/test/rscm/perforce/perforce_test.rb +14 -0
- data/test/rscm/starteam/starteam_test.rb +36 -0
- data/test/rscm/svn/svn_log_parser_test.rb +111 -0
- data/test/rscm/svn/svn_test.rb +28 -0
- data/test/rscm/tempdir.rb +12 -0
- metadata +81 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'rscm/svn/svn'
|
3
|
+
require 'rscm/generic_scm_tests'
|
4
|
+
require 'rscm/path_converter'
|
5
|
+
|
6
|
+
module RSCM
|
7
|
+
class SVNTest < Test::Unit::TestCase
|
8
|
+
|
9
|
+
include GenericSCMTests
|
10
|
+
include LabelTest
|
11
|
+
|
12
|
+
def create_scm(repository_root_dir, path)
|
13
|
+
SVN.new(PathConverter.filepath_to_nativeurl("#{repository_root_dir}/#{path}"), path)
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_repourl
|
17
|
+
svn = SVN.new("svn+ssh://mooky/bazooka/baluba", "bazooka/baluba")
|
18
|
+
assert_equal("svn+ssh://mooky", svn.repourl)
|
19
|
+
|
20
|
+
svn.path = nil
|
21
|
+
assert_equal(svn.url, svn.repourl)
|
22
|
+
|
23
|
+
svn.path = ""
|
24
|
+
assert_equal(svn.url, svn.repourl)
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module RSCM
|
4
|
+
def new_temp_dir(suffix="")
|
5
|
+
identifier = identifier.to_s
|
6
|
+
identifier.gsub!(/\(|:|\)/, '_')
|
7
|
+
dir = File.dirname(__FILE__) + "/../../target/temp_#{identifier}_#{Time.new.to_i}#{suffix}"
|
8
|
+
FileUtils.mkdir_p(dir)
|
9
|
+
dir
|
10
|
+
end
|
11
|
+
module_function :new_temp_dir
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.4
|
3
|
+
specification_version: 1
|
4
|
+
name: rscm
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.1.0
|
7
|
+
date: 2005-02-15
|
8
|
+
summary: "RSCM - Ruby Source Control Management"
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: dev@damagecontrol.codehaus.org
|
12
|
+
homepage: http://rscm.rubyforge.org
|
13
|
+
rubyforge_project: rscm
|
14
|
+
description: RSCM is a Ruby library for various Source Control Management (SCM) systems.
|
15
|
+
autorequire: rscm
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
-
|
22
|
+
- ">"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.0.0
|
25
|
+
version:
|
26
|
+
platform: ruby
|
27
|
+
authors:
|
28
|
+
- Aslak Hellesoy
|
29
|
+
files:
|
30
|
+
- Rakefile
|
31
|
+
- README
|
32
|
+
- lib/rscm.rb
|
33
|
+
- lib/rscm/abstract_log_parser.rb
|
34
|
+
- lib/rscm/abstract_scm.rb
|
35
|
+
- lib/rscm/changes.rb
|
36
|
+
- lib/rscm/line_editor.rb
|
37
|
+
- lib/rscm/logging.rb
|
38
|
+
- lib/rscm/parser.rb
|
39
|
+
- lib/rscm/path_converter.rb
|
40
|
+
- lib/rscm/time_ext.rb
|
41
|
+
- lib/rscm/cvs/cvs.rb
|
42
|
+
- lib/rscm/cvs/cvs_log_parser.rb
|
43
|
+
- lib/rscm/darcs/darcs.rb
|
44
|
+
- lib/rscm/monotone/monotone.rb
|
45
|
+
- lib/rscm/mooky/mooky.rb
|
46
|
+
- lib/rscm/perforce/perforce.rb
|
47
|
+
- lib/rscm/starteam/starteam.rb
|
48
|
+
- lib/rscm/svn/svn.rb
|
49
|
+
- lib/rscm/svn/svn_log_parser.rb
|
50
|
+
- test/rscm/apply_label_scm_tests.rb
|
51
|
+
- test/rscm/changes_fixture.rb
|
52
|
+
- test/rscm/changes_test.rb
|
53
|
+
- test/rscm/difftool_test.rb
|
54
|
+
- test/rscm/file_ext.rb
|
55
|
+
- test/rscm/generic_scm_tests.rb
|
56
|
+
- test/rscm/line_editor_test.rb
|
57
|
+
- test/rscm/mockit.rb
|
58
|
+
- test/rscm/mockit_test.rb
|
59
|
+
- test/rscm/parser_test.rb
|
60
|
+
- test/rscm/path_converter_test.rb
|
61
|
+
- test/rscm/tempdir.rb
|
62
|
+
- test/rscm/cvs/cvs_log_parser_test.rb
|
63
|
+
- test/rscm/cvs/cvs_test.rb
|
64
|
+
- test/rscm/darcs/darcs_test.rb
|
65
|
+
- test/rscm/monotone/monotone_test.rb
|
66
|
+
- test/rscm/mooky/mooky_test.rb
|
67
|
+
- test/rscm/perforce/perforce_test.rb
|
68
|
+
- test/rscm/starteam/starteam_test.rb
|
69
|
+
- test/rscm/svn/svn_log_parser_test.rb
|
70
|
+
- test/rscm/svn/svn_test.rb
|
71
|
+
- ext/rscm.jar
|
72
|
+
test_files: []
|
73
|
+
rdoc_options:
|
74
|
+
- "--line-numbers"
|
75
|
+
- "--inline-source"
|
76
|
+
extra_rdoc_files:
|
77
|
+
- README
|
78
|
+
executables: []
|
79
|
+
extensions: []
|
80
|
+
requirements: []
|
81
|
+
dependencies: []
|