rscm 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +10 -0
- data/README +12 -20
- data/Rakefile +1 -1
- data/lib/rscm.rb +5 -2
- data/lib/rscm/base.rb +2 -15
- data/lib/rscm/revision_file.rb +5 -1
- data/lib/rscm/scm/clearcase.rb +0 -1
- data/lib/rscm/scm/cvs.rb +6 -15
- data/lib/rscm/scm/darcs.rb +0 -3
- data/lib/rscm/scm/monotone.rb +0 -13
- data/lib/rscm/scm/mooky.rb +0 -5
- data/lib/rscm/scm/perforce.rb +0 -10
- data/lib/rscm/scm/star_team.rb +0 -15
- data/lib/rscm/scm/subversion.rb +0 -13
- metadata +2 -8
- data/lib/rscm/annotations.rb +0 -69
- data/lib/rscm/logging.rb +0 -8
- data/test/rscm/annotations_test.rb +0 -70
- data/test/rscm/base_test.rb +0 -22
- data/test/rscm/scm/clearcase.log +0 -608
- data/test/rscm/scm/clearcase_test.rb +0 -39
data/CHANGES
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
= RSCM Changelog
|
2
2
|
|
3
|
+
== Version 0.3.11
|
4
|
+
|
5
|
+
Cleanup release
|
6
|
+
|
7
|
+
* Added atomic? alias for transactional?
|
8
|
+
* Removed annotations, too magic :-)
|
9
|
+
* Removed Base.classes - not needed.
|
10
|
+
* Removed logging
|
11
|
+
* Fixes in the README
|
12
|
+
|
3
13
|
== Version 0.3.10
|
4
14
|
|
5
15
|
Bugfix release
|
data/README
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
= RSCM - Ruby Source Control Management (0.3.
|
1
|
+
= RSCM - Ruby Source Control Management (0.3.11)
|
2
2
|
|
3
|
-
RSCM is to SCM what DBI/JDBC/ODBC are to databases - an SCM-independent API for accessing different SCMs. The features are roughly:
|
3
|
+
RSCM is to SCM what DBI/JDBC/ODBC are to databases - an SCM-independent API for accessing different SCMs. The high level features are roughly:
|
4
4
|
|
5
5
|
* Check out a working copy (with possibility to specify branch/date/label)
|
6
|
-
* Get
|
6
|
+
* Get revisions (changesets) (Emulated for non-transactional SCMs like CVS, ClearCase and StarTeam)
|
7
7
|
* Get diffs
|
8
8
|
* Add and commit files
|
9
9
|
* Manipluate triggers
|
@@ -22,7 +22,7 @@ If you want the latest and greatest, you can get the sources, which live alongsi
|
|
22
22
|
|
23
23
|
* See the DamageControl Developer Guide at http://hieraki.lavalamp.ca/
|
24
24
|
|
25
|
-
==
|
25
|
+
== Contributors
|
26
26
|
|
27
27
|
* Aslak Hellesoy - All
|
28
28
|
* Steven Baker - Monotone
|
@@ -52,15 +52,13 @@ Loads! All of them! How to add support for a new one is described further down i
|
|
52
52
|
|
53
53
|
== Sample usage
|
54
54
|
|
55
|
-
Here is an example of how to use RSCM to get a list of changesets from a
|
55
|
+
Here is an example of how to use RSCM to get a list of revisions (aka changesets) from a subversion repository:
|
56
56
|
|
57
57
|
require 'rscm'
|
58
58
|
|
59
|
-
scm = RSCM::Subversion.new("svn://some.server/some/path/trunk"
|
60
|
-
|
61
|
-
|
62
|
-
scm.checkout
|
63
|
-
revisions = scm.revisions(Time.utc(2004, 11, 10, 12, 34, 22))
|
59
|
+
scm = RSCM::Subversion.new("svn://some.server/some/path/trunk")
|
60
|
+
# What follows would look the same for any supported SCM
|
61
|
+
revisions = scm.revisions(Time.utc(2004, 11, 10, 12, 34, 22)) # For Subversion, you can also pass a revision number (int)
|
64
62
|
revisions.each do |revision|
|
65
63
|
puts revision # or do something more funky with it
|
66
64
|
end
|
@@ -76,18 +74,12 @@ must respond to the following methods:
|
|
76
74
|
def visit_revision(revision); end
|
77
75
|
def visit_file(revision_file); end
|
78
76
|
|
79
|
-
=== Getting diffs
|
80
|
-
|
81
|
-
RSCM allows you to get diffs for changesets. See the DamageControl sources for more detailed
|
82
|
-
examples (DamageControl persists diffs to disk and presents them as colourised diffs in its
|
83
|
-
user interface).
|
84
|
-
|
85
77
|
== Future plans
|
86
78
|
|
87
79
|
=== Cross-SCM synchronisation
|
88
80
|
|
89
81
|
RSCM could be used as a tool to migrate files from one SCM to another (of a different type)
|
90
|
-
while keeping the history. -Similar to cvs2svn.
|
82
|
+
while keeping the history. -Similar to cvs2svn or http://nautilus.homeip.net/~lele/projects/tailor/
|
91
83
|
|
92
84
|
RSCM could also be used as a continuous synchronisation service between SCMs. This can be very useful
|
93
85
|
when you have to work with an SCM and you'd rather use a different one. RSCM could synchronise between
|
@@ -169,7 +161,7 @@ provides libraries (perhaps in C), then you should consider writing a Ruby C ext
|
|
169
161
|
instead.
|
170
162
|
|
171
163
|
If the SCM has a Java interface, you can take the same approach as for StarTeam. There are
|
172
|
-
Java classes for
|
164
|
+
Java classes for Revisions that allow easy interaction between Ruby and Java over YAML.
|
173
165
|
You can reuse these classes for other Java based SCMs (if there are any, I don't know).
|
174
166
|
|
175
167
|
== Web interface (DamageControl only)
|
@@ -188,8 +180,8 @@ Now change to the RSCM root directory and type
|
|
188
180
|
|
189
181
|
rake gem
|
190
182
|
|
191
|
-
This will create a gem for RSCM. To install this gem, you have to change to the
|
183
|
+
This will create a gem for RSCM. To install this gem, you have to change to the pkg directory and type
|
192
184
|
|
193
|
-
sudo gem install pkg/rscm-0.3.
|
185
|
+
sudo gem install pkg/rscm-0.3.11.gem
|
194
186
|
|
195
187
|
Now you can use RSCM in other Ruby apps with a simple require 'rscm'.
|
data/Rakefile
CHANGED
data/lib/rscm.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
require 'rscm/annotations'
|
2
1
|
require 'rscm/path_converter'
|
3
2
|
require 'rscm/difftool'
|
4
|
-
require 'rscm/logging'
|
5
3
|
require 'rscm/better'
|
6
4
|
require 'rscm/base'
|
7
5
|
require 'rscm/revision'
|
@@ -9,3 +7,8 @@ require 'rscm/revision_poller'
|
|
9
7
|
require 'rscm/revision_file'
|
10
8
|
require 'rscm/historic_file'
|
11
9
|
require 'rscm/time_ext'
|
10
|
+
# Load all sources under scm
|
11
|
+
Dir[File.dirname(__FILE__) + "/rscm/scm/*.rb"].each do |src|
|
12
|
+
require src
|
13
|
+
end
|
14
|
+
|
data/lib/rscm/base.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
require 'rscm/revision'
|
3
3
|
require 'rscm/path_converter'
|
4
|
-
require 'rscm/annotations'
|
5
4
|
|
6
5
|
module RSCM
|
7
6
|
# This class defines the RSCM API. The documentation of the various methods
|
@@ -57,20 +56,6 @@ module RSCM
|
|
57
56
|
#
|
58
57
|
class Base
|
59
58
|
|
60
|
-
@@classes = []
|
61
|
-
def self.register(cls)
|
62
|
-
@@classes << cls unless @@classes.index(cls)
|
63
|
-
end
|
64
|
-
def self.classes
|
65
|
-
@@classes
|
66
|
-
end
|
67
|
-
|
68
|
-
# Load all sources under scm, so SCM classes can register themselves
|
69
|
-
Dir[File.dirname(__FILE__) + "/scm/*.rb"].each do |src|
|
70
|
-
require src
|
71
|
-
end
|
72
|
-
|
73
|
-
|
74
59
|
# TODO: Make revisions yield revisions as they are determined, to avoid
|
75
60
|
# having to load them all into memory before the method exits. Careful not to
|
76
61
|
# use yielded revisions to do another scm hit - like get diffs. Some SCMs
|
@@ -111,6 +96,7 @@ module RSCM
|
|
111
96
|
def transactional?
|
112
97
|
false
|
113
98
|
end
|
99
|
+
alias :atomic? :transactional?
|
114
100
|
|
115
101
|
# Creates a new 'central' repository. This is intended only for creation of 'central'
|
116
102
|
# repositories (not for working copies). You shouldn't have to call this method if a central repository
|
@@ -288,6 +274,7 @@ module RSCM
|
|
288
274
|
end
|
289
275
|
|
290
276
|
# Returns/yields an IO containing the unified diff of the change.
|
277
|
+
# Also see RevisionFile#diff
|
291
278
|
def diff(change, &block)
|
292
279
|
return(yield("Not implemented"))
|
293
280
|
end
|
data/lib/rscm/revision_file.rb
CHANGED
@@ -26,11 +26,15 @@ module RSCM
|
|
26
26
|
@path, @developer, @message, @native_revision_identifier, @time, @status = path, developer, message, native_revision_identifier, time, status
|
27
27
|
end
|
28
28
|
|
29
|
-
# Returns/yields an IO containing the contents of this file, using +scm+ this
|
29
|
+
# Returns/yields an IO containing the contents of this file, using the +scm+ this
|
30
30
|
# file lives in.
|
31
31
|
def open(scm, &block)
|
32
32
|
scm.open(self, &block)
|
33
33
|
end
|
34
|
+
|
35
|
+
def diff(scm, &block)
|
36
|
+
scm.diff(self, &block)
|
37
|
+
end
|
34
38
|
|
35
39
|
def accept(visitor)
|
36
40
|
visitor.visit_file(self)
|
data/lib/rscm/scm/clearcase.rb
CHANGED
@@ -5,7 +5,6 @@ require 'tempfile'
|
|
5
5
|
|
6
6
|
module RSCM
|
7
7
|
class ClearCase < Base
|
8
|
-
register self
|
9
8
|
|
10
9
|
LOG_FORMAT = "- !ruby/object:RSCM::RevisionFile\\n developer: %u\\n time: \\\"%Nd\\\"\\n native_revision_identifier: %Vn\\n previous_native_revision_identifier: %PVn\\n path: %En\\n status: %o\\n message: \\\"%Nc\\\"\\n\\n"
|
11
10
|
TIME_FORMAT = "%d-%b-%Y.%H:%M:%S"
|
data/lib/rscm/scm/cvs.rb
CHANGED
@@ -12,18 +12,9 @@ module RSCM
|
|
12
12
|
#
|
13
13
|
# NOTE: On Cygwin this has to be the win32 build of cvs and not the Cygwin one.
|
14
14
|
class Cvs < Base
|
15
|
-
register self
|
16
|
-
|
17
|
-
ann :description => "CVSROOT"
|
18
15
|
attr_accessor :root
|
19
|
-
|
20
|
-
ann :description => "Module"
|
21
16
|
attr_accessor :mod
|
22
|
-
|
23
|
-
ann :description => "Branch"
|
24
17
|
attr_accessor :branch
|
25
|
-
|
26
|
-
ann :description => "Password", :tip => "<b>Warning!</b> Password will be shown in cleartext in configuration files."
|
27
18
|
attr_accessor :password
|
28
19
|
|
29
20
|
def initialize(root=nil, mod=nil, branch=nil, password=nil)
|
@@ -97,16 +88,16 @@ module RSCM
|
|
97
88
|
parse_log(changes_command(from_identifier, to_identifier, relative_path))
|
98
89
|
end
|
99
90
|
|
100
|
-
def diff(
|
91
|
+
def diff(revision_file)
|
101
92
|
with_working_dir(@checkout_dir) do
|
102
|
-
opts = case
|
103
|
-
when /#{RevisionFile::MODIFIED}/; "#{revision_option(
|
104
|
-
when /#{RevisionFile::DELETED}/; "#{revision_option(
|
105
|
-
when /#{RevisionFile::ADDED}/; "#{revision_option(Time.epoch)} #{revision_option(
|
93
|
+
opts = case revision_file.status
|
94
|
+
when /#{RevisionFile::MODIFIED}/; "#{revision_option(revision_file.previous_native_revision_identifier)} #{revision_option(revision_file.native_revision_identifier)}"
|
95
|
+
when /#{RevisionFile::DELETED}/; "#{revision_option(revision_file.previous_native_revision_identifier)}"
|
96
|
+
when /#{RevisionFile::ADDED}/; "#{revision_option(Time.epoch)} #{revision_option(revision_file.native_revision_identifier)}"
|
106
97
|
end
|
107
98
|
# IMPORTANT! CVS NT has a bug in the -N diff option
|
108
99
|
# http://www.cvsnt.org/pipermail/cvsnt-bugs/2004-November/000786.html
|
109
|
-
cmd = command_line("diff -Nu #{opts} #{
|
100
|
+
cmd = command_line("diff -Nu #{opts} #{revision_file.path}")
|
110
101
|
Better.popen(cmd, "r", 1) do |io|
|
111
102
|
return(yield(io))
|
112
103
|
end
|
data/lib/rscm/scm/darcs.rb
CHANGED
data/lib/rscm/scm/monotone.rb
CHANGED
@@ -4,24 +4,11 @@ require 'rscm'
|
|
4
4
|
|
5
5
|
module RSCM
|
6
6
|
class Monotone < Base
|
7
|
-
# register self
|
8
|
-
|
9
|
-
ann :description => "Database file"
|
10
7
|
attr_accessor :db_file
|
11
|
-
|
12
|
-
ann :description => "Branch"
|
13
8
|
attr_accessor :branch
|
14
|
-
|
15
|
-
ann :description => "Key"
|
16
9
|
attr_accessor :key
|
17
|
-
|
18
|
-
ann :description => "Passphrase"
|
19
10
|
attr_accessor :passphrase
|
20
|
-
|
21
|
-
ann :description => "Keys file"
|
22
11
|
attr_accessor :keys_file
|
23
|
-
|
24
|
-
ann :description => "Server"
|
25
12
|
attr_accessor :server
|
26
13
|
|
27
14
|
def initialize(branch=nil, key=nil, passphrase=nil, keys_file=nil, server=nil, central_checkout_dir=nil)
|
data/lib/rscm/scm/mooky.rb
CHANGED
@@ -2,12 +2,7 @@ require 'rscm/base'
|
|
2
2
|
|
3
3
|
module RSCM
|
4
4
|
class Mooky < Base
|
5
|
-
#register self
|
6
|
-
|
7
|
-
ann :description => "The Foo", :tip => "Foo is nonsense"
|
8
5
|
attr_accessor :foo
|
9
|
-
|
10
|
-
ann :description => "Le Bar", :tip => "Bar toi!"
|
11
6
|
attr_accessor :bar
|
12
7
|
|
13
8
|
def initialize(foo="", bar="chocolate bar")
|
data/lib/rscm/scm/perforce.rb
CHANGED
@@ -15,22 +15,12 @@ module RSCM
|
|
15
15
|
# You need the p4/p4d executable on the PATH in order for it to work.
|
16
16
|
#
|
17
17
|
class Perforce < Base
|
18
|
-
register self
|
19
|
-
|
20
18
|
@@counter = 0
|
21
19
|
|
22
|
-
ann :description => "P4CLIENT: workspace name"
|
23
20
|
attr_accessor :client_name
|
24
|
-
|
25
|
-
ann :description => "P4PORT: [host:port]", :tip => "perforce server address e.g. 10.12.1.55:1666"
|
26
21
|
attr_accessor :port
|
27
|
-
|
28
|
-
ann :description => "P4USER", :tip => "username"
|
29
22
|
attr_accessor :user
|
30
|
-
|
31
|
-
ann :description => "P4PASSWD", :tip => "password"
|
32
23
|
attr_accessor :pwd
|
33
|
-
|
34
24
|
attr_accessor :repository_root_dir
|
35
25
|
|
36
26
|
def initialize(port = "1666", user = ENV["LOGNAME"], pwd = "", client_name = Perforce.next_client_name)
|
data/lib/rscm/scm/star_team.rb
CHANGED
@@ -18,27 +18,12 @@ module RSCM
|
|
18
18
|
# * Apache Ant (http://ant.apache.org/)
|
19
19
|
#
|
20
20
|
class StarTeam < Base
|
21
|
-
#register self
|
22
|
-
|
23
|
-
ann :description => "User name"
|
24
21
|
attr_accessor :user_name
|
25
|
-
|
26
|
-
ann :description => "Password"
|
27
22
|
attr_accessor :password
|
28
|
-
|
29
|
-
ann :description => "Server name"
|
30
23
|
attr_accessor :server_name
|
31
|
-
|
32
|
-
ann :description => "Server port"
|
33
24
|
attr_accessor :server_port
|
34
|
-
|
35
|
-
ann :description => "Project name"
|
36
25
|
attr_accessor :project_name
|
37
|
-
|
38
|
-
ann :description => "View name"
|
39
26
|
attr_accessor :view_name
|
40
|
-
|
41
|
-
ann :description => "Folder name"
|
42
27
|
attr_accessor :folder_name
|
43
28
|
|
44
29
|
def initialize(user_name="", password="", server_name="", server_port="", project_name="", view_name="", folder_name="")
|
data/lib/rscm/scm/subversion.rb
CHANGED
@@ -11,25 +11,12 @@ module RSCM
|
|
11
11
|
#
|
12
12
|
# NOTE: On Cygwin these have to be the win32 builds of svn/svnadmin and not the Cygwin ones.
|
13
13
|
class Subversion < Base
|
14
|
-
register self
|
15
|
-
|
16
14
|
include FileUtils
|
17
15
|
include PathConverter
|
18
16
|
|
19
|
-
ann :description => "Repository URL"
|
20
|
-
ann :tip => "If you use ssh, specify the URL as svn+ssh://username@server/path/to/repo"
|
21
17
|
attr_accessor :url
|
22
|
-
|
23
|
-
ann :description => "Path"
|
24
|
-
ann :tip => "You only need to specify this if you want to be able to automatically create the repository. This should be the relative path from the start of the repository <br>to the end of the URL. For example, if your URL is <br>svn://your.server/path/to/repository/path/within/repository <br>then this value should be path/within/repository."
|
25
18
|
attr_accessor :path
|
26
|
-
|
27
|
-
ann :description => "Username"
|
28
|
-
ann :tip => "This only applies to svn:// URLs."
|
29
19
|
attr_accessor :username
|
30
|
-
|
31
|
-
ann :description => "Password"
|
32
|
-
ann :tip => "This only applies to svn:// URLs."
|
33
20
|
attr_accessor :password
|
34
21
|
|
35
22
|
def initialize(url="", path="")
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rscm
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.3.11
|
7
|
+
date: 2005-11-03 00:00:00 -05:00
|
8
8
|
summary: "RSCM - Ruby Source Control Management"
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -35,13 +35,11 @@ files:
|
|
35
35
|
- lib/rscm
|
36
36
|
- lib/rscm.rb
|
37
37
|
- lib/rscm/abstract_log_parser.rb
|
38
|
-
- lib/rscm/annotations.rb
|
39
38
|
- lib/rscm/base.rb
|
40
39
|
- lib/rscm/better.rb
|
41
40
|
- lib/rscm/difftool.rb
|
42
41
|
- lib/rscm/historic_file.rb
|
43
42
|
- lib/rscm/line_editor.rb
|
44
|
-
- lib/rscm/logging.rb
|
45
43
|
- lib/rscm/mockit.rb
|
46
44
|
- lib/rscm/parser.rb
|
47
45
|
- lib/rscm/path_converter.rb
|
@@ -67,9 +65,7 @@ files:
|
|
67
65
|
- bin/Diff_StdDisclaimer.html
|
68
66
|
- bin/touch.exe
|
69
67
|
- test/rscm
|
70
|
-
- test/rscm/annotations_test.rb
|
71
68
|
- test/rscm/apply_label_scm_tests.rb
|
72
|
-
- test/rscm/base_test.rb
|
73
69
|
- test/rscm/difftool_test.rb
|
74
70
|
- test/rscm/file_after_edit
|
75
71
|
- test/rscm/file_ext.rb
|
@@ -83,8 +79,6 @@ files:
|
|
83
79
|
- test/rscm/revision_test.rb
|
84
80
|
- test/rscm/revisions.yaml
|
85
81
|
- test/rscm/scm
|
86
|
-
- test/rscm/scm/clearcase.log
|
87
|
-
- test/rscm/scm/clearcase_test.rb
|
88
82
|
- test/rscm/scm/cvs-dataforge.log
|
89
83
|
- test/rscm/scm/cvs-test.log
|
90
84
|
- test/rscm/scm/cvs_log_parser_test.rb
|
data/lib/rscm/annotations.rb
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
class Class
|
2
|
-
|
3
|
-
@@anns = {}
|
4
|
-
@@attr_anns = {}
|
5
|
-
|
6
|
-
# Defines annotation(s) for the next defined +attr_reader+ or
|
7
|
-
# +attr_accessor+. The +anns+ argument should be a Hash defining annotations
|
8
|
-
# for the associated attr. Example:
|
9
|
-
#
|
10
|
-
# require 'rscm/annotations'
|
11
|
-
#
|
12
|
-
# class EmailSender
|
13
|
-
# ann :description => "IP address of the mail server", :tip => "Use 'localhost' if you have a good box, sister!"
|
14
|
-
# attr_accessor :server
|
15
|
-
# end
|
16
|
-
#
|
17
|
-
# The EmailSender class' annotations can then be accessed like this:
|
18
|
-
#
|
19
|
-
# EmailSender.server[:description] # => "IP address of the mail server"
|
20
|
-
#
|
21
|
-
# Yeah right, cool, whatever. What's this good for? It's useful for example if you want to
|
22
|
-
# build some sort of user interface (for example in on Ruby on Rails) that allows editing of
|
23
|
-
# fields, and you want to provide an explanatory text and a tooltip in the UI.
|
24
|
-
#
|
25
|
-
# You may also use annotations to specify more programmatically meaningful metadata. More power to you.
|
26
|
-
#
|
27
|
-
def ann(anns)
|
28
|
-
@@attr_anns ||= {}
|
29
|
-
@@attr_anns.merge!(anns)
|
30
|
-
end
|
31
|
-
|
32
|
-
def method_missing(sym, *args) #:nodoc:
|
33
|
-
anns = @@anns[self]
|
34
|
-
return anns[sym] if(anns && anns[sym])
|
35
|
-
return superclass.method_missing(sym, *args) if superclass
|
36
|
-
return {}
|
37
|
-
end
|
38
|
-
|
39
|
-
alias old_attr_reader attr_reader #:nodoc:
|
40
|
-
def attr_reader(*syms) #:nodoc:
|
41
|
-
@@anns[self] ||= {}
|
42
|
-
syms.each do |sym|
|
43
|
-
@@anns[self][sym] = @@attr_anns.dup if @@attr_anns
|
44
|
-
end
|
45
|
-
@@attr_anns = nil
|
46
|
-
old_attr_reader(*syms)
|
47
|
-
end
|
48
|
-
|
49
|
-
def attr_accessor(*syms) #:nodoc:
|
50
|
-
attr_reader(*syms)
|
51
|
-
attr_writer(*syms)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
class Object
|
56
|
-
def anns(attr_name)
|
57
|
-
self.class.send(attr_name)
|
58
|
-
end
|
59
|
-
|
60
|
-
def __attr_accessors
|
61
|
-
attrs = []
|
62
|
-
methods.each do |method|
|
63
|
-
if(method =~ /(.*)=/)
|
64
|
-
attrs << "@#{$1}" if methods.index($1) && $1 != "=="
|
65
|
-
end
|
66
|
-
end
|
67
|
-
attrs.sort
|
68
|
-
end
|
69
|
-
end
|
data/lib/rscm/logging.rb
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'rscm/annotations'
|
3
|
-
|
4
|
-
module RSCM
|
5
|
-
class Whatever
|
6
|
-
attr_accessor :no_annotation
|
7
|
-
|
8
|
-
ann :boo => "huba luba", :pip => "pip pip"
|
9
|
-
attr_accessor :foo
|
10
|
-
|
11
|
-
ann :desc => "bang bang"
|
12
|
-
ann :tip => "a top tip"
|
13
|
-
attr_accessor :bar, :zap, :titi
|
14
|
-
end
|
15
|
-
|
16
|
-
class Other
|
17
|
-
attr_accessor :no_annotation
|
18
|
-
|
19
|
-
ann :boo => "boo"
|
20
|
-
ann :pip => "pip"
|
21
|
-
attr_accessor :foo
|
22
|
-
|
23
|
-
ann :desc => "desc", :tip => "tip"
|
24
|
-
attr_accessor :bar, :zap
|
25
|
-
end
|
26
|
-
|
27
|
-
class Subclass < Other
|
28
|
-
ann :desc => "desc", :tip => "tip"
|
29
|
-
attr_accessor :other
|
30
|
-
end
|
31
|
-
|
32
|
-
class AnnotationsTest < Test::Unit::TestCase
|
33
|
-
def test_should_handle_annotations_really_well
|
34
|
-
assert_equal("huba luba", Whatever.foo[:boo])
|
35
|
-
assert_equal("pip pip", Whatever.foo[:pip])
|
36
|
-
|
37
|
-
assert_nil(Whatever.bar[:pip])
|
38
|
-
assert_equal("bang bang", Whatever.bar[:desc])
|
39
|
-
assert_equal("a top tip", Whatever.bar[:tip])
|
40
|
-
|
41
|
-
assert_equal("bang bang", Whatever.zap[:desc])
|
42
|
-
assert_equal("a top tip", Whatever.zap[:tip])
|
43
|
-
|
44
|
-
assert_equal("boo", Other.foo[:boo])
|
45
|
-
assert_equal("pip", Other.foo[:pip])
|
46
|
-
|
47
|
-
assert_nil(Whatever.bar[:pip])
|
48
|
-
assert_equal("desc", Other.bar[:desc])
|
49
|
-
assert_equal("tip", Other.bar[:tip])
|
50
|
-
|
51
|
-
assert_equal("desc", Other.zap[:desc])
|
52
|
-
assert_equal("tip", Other.zap[:tip])
|
53
|
-
end
|
54
|
-
|
55
|
-
def test_should_inherit_attribute_annotations
|
56
|
-
assert_equal("boo", Subclass.foo[:boo])
|
57
|
-
assert_equal({:boo => "boo", :pip => "pip"}, Subclass.send("foo"))
|
58
|
-
assert_equal({}, Whatever.send("no_annotation"))
|
59
|
-
end
|
60
|
-
|
61
|
-
def test_should_get_annotations_from_object
|
62
|
-
assert_equal({:boo => "huba luba", :pip => "pip pip"}, Whatever.new.anns("foo"))
|
63
|
-
end
|
64
|
-
|
65
|
-
def test_should_get_annotations_from_class
|
66
|
-
assert_equal(["@bar", "@foo", "@no_annotation", "@other", "@zap"], Subclass.new.__attr_accessors)
|
67
|
-
end
|
68
|
-
|
69
|
-
end
|
70
|
-
end
|
data/test/rscm/base_test.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'rscm'
|
3
|
-
|
4
|
-
module RSCM
|
5
|
-
class BaseTest < Test::Unit::TestCase
|
6
|
-
def test_should_load_all_scm_classes
|
7
|
-
expected_scms_classes = [
|
8
|
-
ClearCase,
|
9
|
-
Cvs,
|
10
|
-
# Darcs,
|
11
|
-
# Monotone,
|
12
|
-
# Mooky,
|
13
|
-
Perforce,
|
14
|
-
# StarTeam,
|
15
|
-
Subversion
|
16
|
-
]
|
17
|
-
assert_equal(
|
18
|
-
expected_scms_classes.collect{|c| c.name},
|
19
|
-
Base.classes.collect{|c| c.name}.sort)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
data/test/rscm/scm/clearcase.log
DELETED
@@ -1,608 +0,0 @@
|
|
1
|
-
(in C:/ruby/lib/ruby/gems/1.8/gems/rscm-0.1.0.1337)
|
2
|
-
Loaded suite clearcase_test.rb
|
3
|
-
Started
|
4
|
-
Developer:sppr
|
5
|
-
Time:20050307.114228
|
6
|
-
ExtendedName:build.xml@@\main\CorpAsstPlan_Integration\10
|
7
|
-
VersionId:\main\CorpAsstPlan_Integration\10
|
8
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\9
|
9
|
-
ElementName:build.xml
|
10
|
-
OID:59f53a58.78f64dc5.bfd1.01:1d:44:bf:2d:e4
|
11
|
-
O:checkin
|
12
|
-
Message:adding reference to log4j
|
13
|
-
------------------------------------------
|
14
|
-
Developer:icrd
|
15
|
-
Time:20050304.135649
|
16
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java@@\main\CorpAsstPlan_Integration\21
|
17
|
-
VersionId:\main\CorpAsstPlan_Integration\21
|
18
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\20
|
19
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java
|
20
|
-
OID:308aacae.3b604cf8.9623.74:6d:58:2f:4b:e2
|
21
|
-
O:checkin
|
22
|
-
Message:
|
23
|
-
------------------------------------------
|
24
|
-
Developer:icrd
|
25
|
-
Time:20050304.134708
|
26
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java@@\main\CorpAsstPlan_Integration\2
|
27
|
-
VersionId:\main\CorpAsstPlan_Integration\2
|
28
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\1
|
29
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java
|
30
|
-
OID:b31559f5.64b5485a.8af4.8a:bf:c6:87:ff:b2
|
31
|
-
O:checkin
|
32
|
-
Message:
|
33
|
-
------------------------------------------
|
34
|
-
Developer:sppr
|
35
|
-
Time:20050304.113612
|
36
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java@@\main\CorpAsstPlan_Integration\2
|
37
|
-
VersionId:\main\CorpAsstPlan_Integration\2
|
38
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\1
|
39
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java
|
40
|
-
OID:b553ae0b.ca2844b5.af9b.c6:8c:34:3b:d6:07
|
41
|
-
O:checkin
|
42
|
-
Message:
|
43
|
-
------------------------------------------
|
44
|
-
Developer:sppr
|
45
|
-
Time:20050304.113605
|
46
|
-
ExtendedName:WebContent\layout\standard_message_area.vm@@\main\CorpAsstPlan_Integration\3
|
47
|
-
VersionId:\main\CorpAsstPlan_Integration\3
|
48
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\2
|
49
|
-
ElementName:WebContent\layout\standard_message_area.vm
|
50
|
-
OID:14900303.1c194429.9e33.0c:3b:02:e1:21:94
|
51
|
-
O:checkin
|
52
|
-
Message:
|
53
|
-
------------------------------------------
|
54
|
-
Developer:sppr
|
55
|
-
Time:20050304.113556
|
56
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java@@\main\CorpAsstPlan_Integration\20
|
57
|
-
VersionId:\main\CorpAsstPlan_Integration\20
|
58
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\19
|
59
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java
|
60
|
-
OID:1fb99bcb.13474ca2.85c4.d1:15:29:d1:8d:f2
|
61
|
-
O:checkin
|
62
|
-
Message:
|
63
|
-
------------------------------------------
|
64
|
-
Developer:sppr
|
65
|
-
Time:20050304.113510
|
66
|
-
ExtendedName:WebContent\resources@@\main\CorpAsstPlan_Integration\2
|
67
|
-
VersionId:\main\CorpAsstPlan_Integration\2
|
68
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\1
|
69
|
-
ElementName:WebContent\resources
|
70
|
-
OID:ab8fe161.2c3e40f0.87a8.65:dc:88:9c:3e:97
|
71
|
-
O:checkin
|
72
|
-
Message:Added file element "info.gif".
|
73
|
-
Added file element "error.gif".
|
74
|
-
------------------------------------------
|
75
|
-
Developer:sppr
|
76
|
-
Time:20050304.113451
|
77
|
-
ExtendedName:WebContent\resources\error.gif@@\main\CorpAsstPlan_Integration\1
|
78
|
-
VersionId:\main\CorpAsstPlan_Integration\1
|
79
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\0
|
80
|
-
ElementName:WebContent\resources\error.gif
|
81
|
-
OID:2aef7d81.14fe4f4e.8d08.cd:9e:66:06:0f:c4
|
82
|
-
O:checkin
|
83
|
-
Message:
|
84
|
-
------------------------------------------
|
85
|
-
Developer:sppr
|
86
|
-
Time:20050304.113451
|
87
|
-
ExtendedName:WebContent\resources\error.gif@@\main\CorpAsstPlan_Integration\0
|
88
|
-
VersionId:\main\CorpAsstPlan_Integration\0
|
89
|
-
PreviousVersionId:\main\0
|
90
|
-
ElementName:WebContent\resources\error.gif
|
91
|
-
OID:c518277c.59374973.ad67.8b:1a:1a:4a:3a:0d
|
92
|
-
O:mkbranch
|
93
|
-
Message:
|
94
|
-
------------------------------------------
|
95
|
-
Developer:sppr
|
96
|
-
Time:20050304.113451
|
97
|
-
ExtendedName:WebContent\resources\error.gif@@\main\CorpAsstPlan_Integration
|
98
|
-
VersionId:\main\CorpAsstPlan_Integration
|
99
|
-
PreviousVersionId:
|
100
|
-
ElementName:WebContent\resources\error.gif
|
101
|
-
OID:ce7d86d3.3a7140a8.91ef.48:1d:67:84:55:ec
|
102
|
-
O:mkbranch
|
103
|
-
Message:
|
104
|
-
------------------------------------------
|
105
|
-
Developer:sppr
|
106
|
-
Time:20050304.113451
|
107
|
-
ExtendedName:WebContent\resources\error.gif@@\main\0
|
108
|
-
VersionId:\main\0
|
109
|
-
PreviousVersionId:
|
110
|
-
ElementName:WebContent\resources\error.gif
|
111
|
-
OID:6da148ed.755042f5.b304.cf:c6:15:cb:21:8a
|
112
|
-
O:mkelem
|
113
|
-
Message:
|
114
|
-
------------------------------------------
|
115
|
-
Developer:sppr
|
116
|
-
Time:20050304.113451
|
117
|
-
ExtendedName:WebContent\resources\error.gif@@\main
|
118
|
-
VersionId:\main
|
119
|
-
PreviousVersionId:
|
120
|
-
ElementName:WebContent\resources\error.gif
|
121
|
-
OID:83d7a787.ea3c4b23.8f42.3d:ea:fe:e0:db:87
|
122
|
-
O:mkelem
|
123
|
-
Message:
|
124
|
-
------------------------------------------
|
125
|
-
Developer:sppr
|
126
|
-
Time:20050304.113451
|
127
|
-
ExtendedName:WebContent\resources\error.gif@@
|
128
|
-
VersionId:
|
129
|
-
PreviousVersionId:
|
130
|
-
ElementName:WebContent\resources\error.gif
|
131
|
-
OID:f7fd9cc4.46714a69.802a.7d:0f:15:ce:54:86
|
132
|
-
O:mkelem
|
133
|
-
Message:
|
134
|
-
------------------------------------------
|
135
|
-
Developer:sppr
|
136
|
-
Time:20050304.113429
|
137
|
-
ExtendedName:WebContent\resources\info.gif@@\main\CorpAsstPlan_Integration\1
|
138
|
-
VersionId:\main\CorpAsstPlan_Integration\1
|
139
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\0
|
140
|
-
ElementName:WebContent\resources\info.gif
|
141
|
-
OID:1abe3c96.e2174460.9505.f5:62:36:56:16:57
|
142
|
-
O:checkin
|
143
|
-
Message:
|
144
|
-
------------------------------------------
|
145
|
-
Developer:sppr
|
146
|
-
Time:20050304.113429
|
147
|
-
ExtendedName:WebContent\resources\info.gif@@\main\CorpAsstPlan_Integration\0
|
148
|
-
VersionId:\main\CorpAsstPlan_Integration\0
|
149
|
-
PreviousVersionId:\main\0
|
150
|
-
ElementName:WebContent\resources\info.gif
|
151
|
-
OID:38ca912e.66b3453e.9cd8.08:f7:3d:13:b1:4d
|
152
|
-
O:mkbranch
|
153
|
-
Message:
|
154
|
-
------------------------------------------
|
155
|
-
Developer:sppr
|
156
|
-
Time:20050304.113429
|
157
|
-
ExtendedName:WebContent\resources\info.gif@@\main\CorpAsstPlan_Integration
|
158
|
-
VersionId:\main\CorpAsstPlan_Integration
|
159
|
-
PreviousVersionId:
|
160
|
-
ElementName:WebContent\resources\info.gif
|
161
|
-
OID:4fd0d207.77594fb3.b4ad.5d:d3:24:1b:65:59
|
162
|
-
O:mkbranch
|
163
|
-
Message:
|
164
|
-
------------------------------------------
|
165
|
-
Developer:sppr
|
166
|
-
Time:20050304.113429
|
167
|
-
ExtendedName:WebContent\resources\info.gif@@\main\0
|
168
|
-
VersionId:\main\0
|
169
|
-
PreviousVersionId:
|
170
|
-
ElementName:WebContent\resources\info.gif
|
171
|
-
OID:e0a483ea.5e914f04.8748.e2:46:4f:8a:55:37
|
172
|
-
O:mkelem
|
173
|
-
Message:
|
174
|
-
------------------------------------------
|
175
|
-
Developer:sppr
|
176
|
-
Time:20050304.113429
|
177
|
-
ExtendedName:WebContent\resources\info.gif@@\main
|
178
|
-
VersionId:\main
|
179
|
-
PreviousVersionId:
|
180
|
-
ElementName:WebContent\resources\info.gif
|
181
|
-
OID:9f3b7c9d.94db48cc.b392.86:77:05:78:69:89
|
182
|
-
O:mkelem
|
183
|
-
Message:
|
184
|
-
------------------------------------------
|
185
|
-
Developer:sppr
|
186
|
-
Time:20050304.113429
|
187
|
-
ExtendedName:WebContent\resources\info.gif@@
|
188
|
-
VersionId:
|
189
|
-
PreviousVersionId:
|
190
|
-
ElementName:WebContent\resources\info.gif
|
191
|
-
OID:427c504d.99fb4c06.ab26.43:bb:ae:99:bb:aa
|
192
|
-
O:mkelem
|
193
|
-
Message:
|
194
|
-
------------------------------------------
|
195
|
-
Developer:sppr
|
196
|
-
Time:20050304.113223
|
197
|
-
ExtendedName:test\com\llbean\MerchandisingRandD@@\main\CorpAsstPlan_Integration\3
|
198
|
-
VersionId:\main\CorpAsstPlan_Integration\3
|
199
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\2
|
200
|
-
ElementName:test\com\llbean\MerchandisingRandD
|
201
|
-
OID:91167dea.d5124d98.b58a.b7:ba:f7:85:12:05
|
202
|
-
O:checkin
|
203
|
-
Message:Added file element "CAPBaseControllerTest.java".
|
204
|
-
------------------------------------------
|
205
|
-
Developer:sppr
|
206
|
-
Time:20050304.113202
|
207
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java@@\main\CorpAsstPlan_Integration\1
|
208
|
-
VersionId:\main\CorpAsstPlan_Integration\1
|
209
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\0
|
210
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java
|
211
|
-
OID:14d6599f.f7444c7d.9be8.40:8c:57:ee:e7:f3
|
212
|
-
O:checkin
|
213
|
-
Message:
|
214
|
-
------------------------------------------
|
215
|
-
Developer:sppr
|
216
|
-
Time:20050304.113202
|
217
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java@@\main\CorpAsstPlan_Integration\0
|
218
|
-
VersionId:\main\CorpAsstPlan_Integration\0
|
219
|
-
PreviousVersionId:\main\0
|
220
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java
|
221
|
-
OID:f39a3375.b7294162.b71d.ea:1e:d7:19:94:2d
|
222
|
-
O:mkbranch
|
223
|
-
Message:
|
224
|
-
------------------------------------------
|
225
|
-
Developer:sppr
|
226
|
-
Time:20050304.113202
|
227
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java@@\main\CorpAsstPlan_Integration
|
228
|
-
VersionId:\main\CorpAsstPlan_Integration
|
229
|
-
PreviousVersionId:
|
230
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java
|
231
|
-
OID:9c6a0c8e.e6e64b94.b746.49:3b:e0:5f:b9:62
|
232
|
-
O:mkbranch
|
233
|
-
Message:
|
234
|
-
------------------------------------------
|
235
|
-
Developer:sppr
|
236
|
-
Time:20050304.113202
|
237
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java@@\main\0
|
238
|
-
VersionId:\main\0
|
239
|
-
PreviousVersionId:
|
240
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java
|
241
|
-
OID:d26bd140.75524111.84af.52:49:79:45:46:0e
|
242
|
-
O:mkelem
|
243
|
-
Message:
|
244
|
-
------------------------------------------
|
245
|
-
Developer:sppr
|
246
|
-
Time:20050304.113202
|
247
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java@@\main
|
248
|
-
VersionId:\main
|
249
|
-
PreviousVersionId:
|
250
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java
|
251
|
-
OID:320ca232.d65d4a8f.8795.f0:0e:01:f4:b7:e2
|
252
|
-
O:mkelem
|
253
|
-
Message:
|
254
|
-
------------------------------------------
|
255
|
-
Developer:sppr
|
256
|
-
Time:20050304.113202
|
257
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java@@
|
258
|
-
VersionId:
|
259
|
-
PreviousVersionId:
|
260
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPBaseControllerTest.java
|
261
|
-
OID:0c21caf3.353f4b5a.9694.71:5c:c2:f4:12:c4
|
262
|
-
O:mkelem
|
263
|
-
Message:
|
264
|
-
------------------------------------------
|
265
|
-
Developer:sppr
|
266
|
-
Time:20050304.112944
|
267
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD@@\main\CorpAsstPlan_Integration\17
|
268
|
-
VersionId:\main\CorpAsstPlan_Integration\17
|
269
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\16
|
270
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD
|
271
|
-
OID:0c9b4625.51684fe3.b377.cc:90:f7:18:a1:92
|
272
|
-
O:checkin
|
273
|
-
Message:Added file element "CAPBaseController.java".
|
274
|
-
------------------------------------------
|
275
|
-
Developer:sppr
|
276
|
-
Time:20050304.112923
|
277
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java@@\main\CorpAsstPlan_Integration\1
|
278
|
-
VersionId:\main\CorpAsstPlan_Integration\1
|
279
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\0
|
280
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java
|
281
|
-
OID:b8ebeff1.3a9a4c6b.a4f9.b0:78:0d:dd:a8:28
|
282
|
-
O:checkin
|
283
|
-
Message:New Base class for our Actions
|
284
|
-
------------------------------------------
|
285
|
-
Developer:sppr
|
286
|
-
Time:20050304.112923
|
287
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java@@\main\CorpAsstPlan_Integration\0
|
288
|
-
VersionId:\main\CorpAsstPlan_Integration\0
|
289
|
-
PreviousVersionId:\main\0
|
290
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java
|
291
|
-
OID:5b368e77.ab734c26.973d.47:2a:11:cc:18:3e
|
292
|
-
O:mkbranch
|
293
|
-
Message:
|
294
|
-
------------------------------------------
|
295
|
-
Developer:sppr
|
296
|
-
Time:20050304.112923
|
297
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java@@\main\CorpAsstPlan_Integration
|
298
|
-
VersionId:\main\CorpAsstPlan_Integration
|
299
|
-
PreviousVersionId:
|
300
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java
|
301
|
-
OID:9481aa35.40f7481b.bce9.84:90:d8:b7:2d:5d
|
302
|
-
O:mkbranch
|
303
|
-
Message:New Base class for our Actions
|
304
|
-
------------------------------------------
|
305
|
-
Developer:sppr
|
306
|
-
Time:20050304.112923
|
307
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java@@\main\0
|
308
|
-
VersionId:\main\0
|
309
|
-
PreviousVersionId:
|
310
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java
|
311
|
-
OID:e8326474.ba78460c.a553.58:e0:0d:fc:2f:70
|
312
|
-
O:mkelem
|
313
|
-
Message:
|
314
|
-
------------------------------------------
|
315
|
-
Developer:sppr
|
316
|
-
Time:20050304.112923
|
317
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java@@\main
|
318
|
-
VersionId:\main
|
319
|
-
PreviousVersionId:
|
320
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java
|
321
|
-
OID:c6e34b5f.bcd14918.ace0.75:06:66:a2:ab:db
|
322
|
-
O:mkelem
|
323
|
-
Message:
|
324
|
-
------------------------------------------
|
325
|
-
Developer:sppr
|
326
|
-
Time:20050304.112923
|
327
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java@@
|
328
|
-
VersionId:
|
329
|
-
PreviousVersionId:
|
330
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPBaseController.java
|
331
|
-
OID:9903263f.d2cc4930.916b.0e:53:8a:23:b9:79
|
332
|
-
O:mkelem
|
333
|
-
Message:New Base class for our Actions
|
334
|
-
------------------------------------------
|
335
|
-
Developer:sppr
|
336
|
-
Time:20050304.100916
|
337
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java@@\main\CorpAsstPlan_Integration\19
|
338
|
-
VersionId:\main\CorpAsstPlan_Integration\19
|
339
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\18
|
340
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java
|
341
|
-
OID:b0b99d76.1a554589.a985.87:09:92:19:2b:94
|
342
|
-
O:checkin
|
343
|
-
Message:check in in to get Aslak changes
|
344
|
-
------------------------------------------
|
345
|
-
Developer:spjab
|
346
|
-
Time:20050304.094142
|
347
|
-
ExtendedName:build.xml@@\main\CorpAsstPlan_Integration\9
|
348
|
-
VersionId:\main\CorpAsstPlan_Integration\9
|
349
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\8
|
350
|
-
ElementName:build.xml
|
351
|
-
OID:ef300a7a.e5b349ee.a007.0a:86:61:30:8a:68
|
352
|
-
O:checkin
|
353
|
-
Message:
|
354
|
-
------------------------------------------
|
355
|
-
Developer:sppr
|
356
|
-
Time:20050303.183843
|
357
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view@@\main\CorpAsstPlan_Integration\2
|
358
|
-
VersionId:\main\CorpAsstPlan_Integration\2
|
359
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\1
|
360
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view
|
361
|
-
OID:c6fa204d.1ff442cc.aac3.65:55:a0:c4:89:3b
|
362
|
-
O:checkin
|
363
|
-
Message:Added file element "WebAppMessageInfo.java".
|
364
|
-
------------------------------------------
|
365
|
-
Developer:sppr
|
366
|
-
Time:20050303.183834
|
367
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java@@\main\CorpAsstPlan_Integration\1
|
368
|
-
VersionId:\main\CorpAsstPlan_Integration\1
|
369
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\0
|
370
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java
|
371
|
-
OID:b722cfd4.f1e945e3.a975.83:d5:c7:e4:12:4c
|
372
|
-
O:checkin
|
373
|
-
Message:
|
374
|
-
------------------------------------------
|
375
|
-
Developer:sppr
|
376
|
-
Time:20050303.183834
|
377
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java@@\main\CorpAsstPlan_Integration\0
|
378
|
-
VersionId:\main\CorpAsstPlan_Integration\0
|
379
|
-
PreviousVersionId:\main\0
|
380
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java
|
381
|
-
OID:fa8a48b5.eb034d1f.ac2d.3b:81:53:19:cc:cf
|
382
|
-
O:mkbranch
|
383
|
-
Message:
|
384
|
-
------------------------------------------
|
385
|
-
Developer:sppr
|
386
|
-
Time:20050303.183834
|
387
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java@@\main\CorpAsstPlan_Integration
|
388
|
-
VersionId:\main\CorpAsstPlan_Integration
|
389
|
-
PreviousVersionId:
|
390
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java
|
391
|
-
OID:9eb779ec.1e1f412c.92a0.45:86:95:61:80:9d
|
392
|
-
O:mkbranch
|
393
|
-
Message:
|
394
|
-
------------------------------------------
|
395
|
-
Developer:sppr
|
396
|
-
Time:20050303.183834
|
397
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java@@\main\0
|
398
|
-
VersionId:\main\0
|
399
|
-
PreviousVersionId:
|
400
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java
|
401
|
-
OID:b57cd5f2.a52c4157.a35d.fa:0c:29:5e:1d:24
|
402
|
-
O:mkelem
|
403
|
-
Message:
|
404
|
-
------------------------------------------
|
405
|
-
Developer:sppr
|
406
|
-
Time:20050303.183834
|
407
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java@@\main
|
408
|
-
VersionId:\main
|
409
|
-
PreviousVersionId:
|
410
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java
|
411
|
-
OID:bceae8b8.1d874322.8ab3.46:b6:ba:ec:c5:32
|
412
|
-
O:mkelem
|
413
|
-
Message:
|
414
|
-
------------------------------------------
|
415
|
-
Developer:sppr
|
416
|
-
Time:20050303.183834
|
417
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java@@
|
418
|
-
VersionId:
|
419
|
-
PreviousVersionId:
|
420
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view\WebAppMessageInfo.java
|
421
|
-
OID:dc558499.22c9496b.aae4.f8:f4:95:0b:df:7d
|
422
|
-
O:mkelem
|
423
|
-
Message:
|
424
|
-
------------------------------------------
|
425
|
-
Developer:sppr
|
426
|
-
Time:20050303.183808
|
427
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD@@\main\CorpAsstPlan_Integration\16
|
428
|
-
VersionId:\main\CorpAsstPlan_Integration\16
|
429
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\15
|
430
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD
|
431
|
-
OID:ef9ee9a2.b15d4139.b28c.f7:7d:26:ad:b6:24
|
432
|
-
O:checkin
|
433
|
-
Message:Added directory element "view".
|
434
|
-
------------------------------------------
|
435
|
-
Developer:sppr
|
436
|
-
Time:20050303.183758
|
437
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view@@\main\CorpAsstPlan_Integration\1
|
438
|
-
VersionId:\main\CorpAsstPlan_Integration\1
|
439
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\0
|
440
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view
|
441
|
-
OID:dd6ee4ad.3b1a42d4.bff5.82:b1:28:b4:43:6e
|
442
|
-
O:checkin
|
443
|
-
Message:new package for view related classes
|
444
|
-
------------------------------------------
|
445
|
-
Developer:sppr
|
446
|
-
Time:20050303.183758
|
447
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view@@\main\CorpAsstPlan_Integration\0
|
448
|
-
VersionId:\main\CorpAsstPlan_Integration\0
|
449
|
-
PreviousVersionId:\main\0
|
450
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view
|
451
|
-
OID:1239e691.5a534bf6.af67.e8:cf:9d:15:a7:59
|
452
|
-
O:mkbranch
|
453
|
-
Message:
|
454
|
-
------------------------------------------
|
455
|
-
Developer:sppr
|
456
|
-
Time:20050303.183758
|
457
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view@@\main\CorpAsstPlan_Integration
|
458
|
-
VersionId:\main\CorpAsstPlan_Integration
|
459
|
-
PreviousVersionId:
|
460
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view
|
461
|
-
OID:6275201f.70b44819.8226.ae:94:db:1d:a7:86
|
462
|
-
O:mkbranch
|
463
|
-
Message:new package for view related classes
|
464
|
-
------------------------------------------
|
465
|
-
Developer:sppr
|
466
|
-
Time:20050303.183758
|
467
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view@@\main\0
|
468
|
-
VersionId:\main\0
|
469
|
-
PreviousVersionId:
|
470
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view
|
471
|
-
OID:21c1138f.f52f4ab6.bd35.ee:52:41:dd:6c:81
|
472
|
-
O:mkelem
|
473
|
-
Message:
|
474
|
-
------------------------------------------
|
475
|
-
Developer:sppr
|
476
|
-
Time:20050303.183758
|
477
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view@@\main
|
478
|
-
VersionId:\main
|
479
|
-
PreviousVersionId:
|
480
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view
|
481
|
-
OID:6a4d1141.46b946e0.9c27.f5:da:b9:fb:d2:4c
|
482
|
-
O:mkelem
|
483
|
-
Message:
|
484
|
-
------------------------------------------
|
485
|
-
Developer:sppr
|
486
|
-
Time:20050303.183758
|
487
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\view@@
|
488
|
-
VersionId:
|
489
|
-
PreviousVersionId:
|
490
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\view
|
491
|
-
OID:492b081b.e04748cf.8750.b3:0e:de:04:b0:21
|
492
|
-
O:mkelem
|
493
|
-
Message:new package for view related classes
|
494
|
-
------------------------------------------
|
495
|
-
Developer:sppr
|
496
|
-
Time:20050303.170519
|
497
|
-
ExtendedName:WebContent@@\main\CorpAsstPlan_Integration\7
|
498
|
-
VersionId:\main\CorpAsstPlan_Integration\7
|
499
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\6
|
500
|
-
ElementName:WebContent
|
501
|
-
OID:370d92a3.25604aa4.bad7.6b:1b:fd:c2:ec:27
|
502
|
-
O:checkin
|
503
|
-
Message:Added directory element "resources".
|
504
|
-
------------------------------------------
|
505
|
-
Developer:sppr
|
506
|
-
Time:20050303.170507
|
507
|
-
ExtendedName:WebContent\resources@@\main\CorpAsstPlan_Integration\1
|
508
|
-
VersionId:\main\CorpAsstPlan_Integration\1
|
509
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\0
|
510
|
-
ElementName:WebContent\resources
|
511
|
-
OID:12f2fa87.4704499b.b75e.41:ff:da:c6:c1:8b
|
512
|
-
O:checkin
|
513
|
-
Message:
|
514
|
-
------------------------------------------
|
515
|
-
Developer:sppr
|
516
|
-
Time:20050303.170507
|
517
|
-
ExtendedName:WebContent\resources@@\main\CorpAsstPlan_Integration\0
|
518
|
-
VersionId:\main\CorpAsstPlan_Integration\0
|
519
|
-
PreviousVersionId:\main\0
|
520
|
-
ElementName:WebContent\resources
|
521
|
-
OID:804c26e7.422a4b9b.b9b2.73:ab:5d:97:cf:b4
|
522
|
-
O:mkbranch
|
523
|
-
Message:
|
524
|
-
------------------------------------------
|
525
|
-
Developer:sppr
|
526
|
-
Time:20050303.170507
|
527
|
-
ExtendedName:WebContent\resources@@\main\CorpAsstPlan_Integration
|
528
|
-
VersionId:\main\CorpAsstPlan_Integration
|
529
|
-
PreviousVersionId:
|
530
|
-
ElementName:WebContent\resources
|
531
|
-
OID:7bb90049.9dc84fdf.b389.97:4b:a0:71:ed:9e
|
532
|
-
O:mkbranch
|
533
|
-
Message:
|
534
|
-
------------------------------------------
|
535
|
-
Developer:sppr
|
536
|
-
Time:20050303.170507
|
537
|
-
ExtendedName:WebContent\resources@@\main\0
|
538
|
-
VersionId:\main\0
|
539
|
-
PreviousVersionId:
|
540
|
-
ElementName:WebContent\resources
|
541
|
-
OID:9af35be3.d5964f5e.9f0f.a4:1d:37:08:f3:59
|
542
|
-
O:mkelem
|
543
|
-
Message:
|
544
|
-
------------------------------------------
|
545
|
-
Developer:sppr
|
546
|
-
Time:20050303.170507
|
547
|
-
ExtendedName:WebContent\resources@@\main
|
548
|
-
VersionId:\main
|
549
|
-
PreviousVersionId:
|
550
|
-
ElementName:WebContent\resources
|
551
|
-
OID:ac0a1248.09c44c2a.8ab1.83:8a:64:6a:8b:91
|
552
|
-
O:mkelem
|
553
|
-
Message:
|
554
|
-
------------------------------------------
|
555
|
-
Developer:sppr
|
556
|
-
Time:20050303.170507
|
557
|
-
ExtendedName:WebContent\resources@@
|
558
|
-
VersionId:
|
559
|
-
PreviousVersionId:
|
560
|
-
ElementName:WebContent\resources
|
561
|
-
OID:48588e3f.53e64196.8edb.7a:63:2a:51:e6:12
|
562
|
-
O:mkelem
|
563
|
-
Message:
|
564
|
-
------------------------------------------
|
565
|
-
Developer:icah
|
566
|
-
Time:20050303.112538
|
567
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java@@\main\CorpAsstPlan_Integration\18
|
568
|
-
VersionId:\main\CorpAsstPlan_Integration\18
|
569
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\17
|
570
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CAPAdminController.java
|
571
|
-
OID:6d882692.52de4d48.a576.3b:55:eb:58:5a:28
|
572
|
-
O:checkin
|
573
|
-
Message:
|
574
|
-
------------------------------------------
|
575
|
-
Developer:icah
|
576
|
-
Time:20050303.112152
|
577
|
-
ExtendedName:test\com\llbean\MerchandisingRandD\CAPAdminControllerTest.java@@\main\CorpAsstPlan_Integration\11
|
578
|
-
VersionId:\main\CorpAsstPlan_Integration\11
|
579
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\10
|
580
|
-
ElementName:test\com\llbean\MerchandisingRandD\CAPAdminControllerTest.java
|
581
|
-
OID:9e618da4.d78545a9.8ffe.c7:4d:46:3d:e7:f1
|
582
|
-
O:checkin
|
583
|
-
Message:
|
584
|
-
------------------------------------------
|
585
|
-
Developer:icah
|
586
|
-
Time:20050303.112134
|
587
|
-
ExtendedName:build.xml@@\main\CorpAsstPlan_Integration\8
|
588
|
-
VersionId:\main\CorpAsstPlan_Integration\8
|
589
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\7
|
590
|
-
ElementName:build.xml
|
591
|
-
OID:596957f5.792c4c47.a9d9.84:04:23:45:4b:26
|
592
|
-
O:checkin
|
593
|
-
Message:
|
594
|
-
------------------------------------------
|
595
|
-
Developer:sppr
|
596
|
-
Time:20050303.104032
|
597
|
-
ExtendedName:JavaSource\com\llbean\MerchandisingRandD\CorporatePlanningSeason.java@@\main\CorpAsstPlan_Integration\7
|
598
|
-
VersionId:\main\CorpAsstPlan_Integration\7
|
599
|
-
PreviousVersionId:\main\CorpAsstPlan_Integration\6
|
600
|
-
ElementName:JavaSource\com\llbean\MerchandisingRandD\CorporatePlanningSeason.java
|
601
|
-
OID:638b2ccd.0e3e4eee.aaaf.f5:fd:97:4b:5b:85
|
602
|
-
O:checkin
|
603
|
-
Message:Modifyng throw block to match 1.3 spec on Runtime Exception Constructor
|
604
|
-
------------------------------------------
|
605
|
-
.
|
606
|
-
Finished in 3.094 seconds.
|
607
|
-
|
608
|
-
1 tests, 0 assertions, 0 failures, 0 errors
|
@@ -1,39 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'rscm/generic_scm_tests'
|
3
|
-
require 'rscm/clearcase/clearcase'
|
4
|
-
|
5
|
-
module RSCM
|
6
|
-
class ClearCaseTest < Test::Unit::TestCase
|
7
|
-
|
8
|
-
def setup
|
9
|
-
@checkout_dir = "C:\\ClearCase_Storage\\viewroot\\icah_CorpAsstPlan_integration\\merchandising\\MerchandisingRandD"
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_revisions
|
13
|
-
scm = ClearCase.new
|
14
|
-
revisions = scm.revisions(@checkout_dir, Time.utc(2005,03,03,0,0,0))
|
15
|
-
end
|
16
|
-
|
17
|
-
def test_checkout
|
18
|
-
# delete some local files (so we get some checkouts!)
|
19
|
-
build_xml = "build.xml"
|
20
|
-
actions_xml = "JavaSource/actions.xml"
|
21
|
-
File.delete("#{checkout_dir}/#{build_xml}") if File.exist?("#{checkout_dir}/#{build_xml}")
|
22
|
-
File.delete("#{checkout_dir}/#{actions_xml}") if File.exist?("#{checkout_dir}/#{actions_xml}")
|
23
|
-
|
24
|
-
scm = ClearCase.new
|
25
|
-
|
26
|
-
assert(!scm.uptodate?(@checkout_dir, Time.new.utc))
|
27
|
-
assert(!scm.uptodate?(@checkout_dir, Time.new.utc))
|
28
|
-
|
29
|
-
yielded_files = []
|
30
|
-
files = scm.checkout(@checkout_dir) do |file_name|
|
31
|
-
yielded_files << file_name
|
32
|
-
end
|
33
|
-
|
34
|
-
assert_equal(files, yielded_files)
|
35
|
-
assert_equal([build_xml, actions_xml], files)
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
39
|
-
end
|