rscm 0.1.0.1338 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +13 -28
- data/Rakefile +25 -24
- data/lib/rscm.rb +1 -6
- data/lib/rscm/abstract_scm.rb +36 -10
- data/lib/rscm/annotations.rb +50 -0
- data/lib/rscm/changes.rb +2 -5
- data/lib/rscm/logging.rb +1 -0
- data/lib/rscm/path_converter.rb +3 -2
- data/lib/rscm/{cvs → scm}/cvs.rb +16 -9
- data/lib/rscm/{cvs → scm}/cvs_log_parser.rb +4 -4
- data/lib/rscm/{darcs → scm}/darcs.rb +6 -3
- data/lib/rscm/scm/monotone.rb +162 -0
- data/lib/rscm/scm/monotone_log_parser.rb +95 -0
- data/lib/rscm/scm/mooky.rb +21 -0
- data/lib/rscm/{perforce → scm}/perforce.rb +7 -4
- data/lib/rscm/{starteam/starteam.rb → scm/star_team.rb} +23 -3
- data/lib/rscm/{svn/svn.rb → scm/subversion.rb} +17 -10
- data/lib/rscm/{svn/svn_log_parser.rb → scm/subversion_log_parser.rb} +8 -7
- data/test/rscm/abstract_scm_test.rb +21 -0
- data/test/rscm/annotations_test.rb +57 -0
- data/test/rscm/changes_fixture.rb +7 -7
- data/test/rscm/changes_test.rb +3 -3
- data/test/rscm/generic_scm_tests.rb +2 -2
- data/test/rscm/{cvs → scm}/cvs-dataforge.log +0 -0
- data/test/rscm/{cvs → scm}/cvs-test.log +0 -0
- data/test/rscm/{cvs → scm}/cvs_log_parser_test.rb +12 -13
- data/test/rscm/{cvs → scm}/cvs_test.rb +7 -7
- data/test/rscm/{darcs → scm}/darcs_test.rb +1 -1
- data/test/rscm/{monotone → scm}/keys +0 -0
- data/test/rscm/scm/monotone_log_parser_test.rb +109 -0
- data/test/rscm/{monotone → scm}/monotone_test.rb +1 -1
- data/test/rscm/{mooky → scm}/mooky_test.rb +1 -1
- data/test/rscm/{perforce → scm}/perforce_test.rb +1 -1
- data/test/rscm/{starteam/starteam_test.rb → scm/star_team.rb} +1 -1
- data/test/rscm/{svn/svn_log_parser_test.rb → scm/subversion_log_parser_test.rb} +25 -10
- data/test/rscm/{svn/svn_test.rb → scm/subversion_test.rb} +4 -5
- data/test/rscm/{svn/cargo-svn.log → scm/svn-cargo.log} +0 -0
- data/test/rscm/scm/svn-growl.log +875 -0
- data/test/rscm/scm/svn-growl2.log +30 -0
- data/test/rscm/{svn/proxytoys-svn.log → scm/svn-proxytoys.log} +0 -0
- metadata +35 -44
- data/lib/rscm/attr_attr.rb +0 -36
- data/lib/rscm/monotone/monotone.rb +0 -107
- data/lib/rscm/mooky/mooky.rb +0 -13
- data/test/actual +0 -3
- data/test/expected +0 -3
- data/test/rscm/attr_attr_test.rb +0 -32
@@ -0,0 +1,30 @@
|
|
1
|
+
------------------------------------------------------------------------
|
2
|
+
r1613 | boredzo | 2005-03-06 07:06:49 -0600 (Sun, 06 Mar 2005) | 2 lines
|
3
|
+
Changed paths:
|
4
|
+
M /trunk/Growl.xcode/project.pbxproj
|
5
|
+
|
6
|
+
Ingmar did not correct the references to the additions, he removed them. Adding them back.
|
7
|
+
|
8
|
+
------------------------------------------------------------------------
|
9
|
+
r1614 | ingmarstein | 2005-03-06 07:17:35 -0600 (Sun, 06 Mar 2005) | 4 lines
|
10
|
+
Changed paths:
|
11
|
+
M /trunk/Display Plugins/Bezel/English.lproj/GrowlBezelPrefs.nib/classes.nib
|
12
|
+
M /trunk/Display Plugins/Bezel/English.lproj/GrowlBezelPrefs.nib/keyedobjects.nib
|
13
|
+
M /trunk/Display Plugins/Bezel/German.lproj/GrowlBezelPrefs.nib/classes.nib
|
14
|
+
M /trunk/Display Plugins/Bezel/German.lproj/GrowlBezelPrefs.nib/info.nib
|
15
|
+
M /trunk/Display Plugins/Bezel/German.lproj/GrowlBezelPrefs.nib/keyedobjects.nib
|
16
|
+
M /trunk/Display Plugins/Bezel/GrowlBezelDisplay.m
|
17
|
+
M /trunk/Display Plugins/Bezel/GrowlBezelPrefs.h
|
18
|
+
M /trunk/Display Plugins/Bezel/GrowlBezelPrefs.m
|
19
|
+
M /trunk/Display Plugins/Bezel/GrowlBezelWindowController.m
|
20
|
+
M /trunk/Display Plugins/Bezel/GrowlBezelWindowView.m
|
21
|
+
M /trunk/Display Plugins/Bubbles/GrowlBubblesController.m
|
22
|
+
M /trunk/Display Plugins/Bubbles/GrowlBubblesPrefsController.h
|
23
|
+
M /trunk/Display Plugins/MusicVideo/GrowlMusicVideoWindowView.m
|
24
|
+
M /trunk/Display Plugins/Smoke/GrowlSmokeWindowView.m
|
25
|
+
|
26
|
+
Added duration slider to bezel
|
27
|
+
Removed init methods which only set ivars to nil
|
28
|
+
Fixed memory leak in MusicVideo
|
29
|
+
|
30
|
+
------------------------------------------------------------------------
|
File without changes
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.6
|
3
3
|
specification_version: 1
|
4
4
|
name: rscm
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.2.0
|
7
|
+
date: 2005-03-09
|
8
8
|
summary: "RSCM - Ruby Source Control Management"
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -35,43 +35,35 @@ files:
|
|
35
35
|
- lib/rubyforge_file_publisher.rb
|
36
36
|
- lib/rscm/abstract_log_parser.rb
|
37
37
|
- lib/rscm/abstract_scm.rb
|
38
|
-
- lib/rscm/
|
38
|
+
- lib/rscm/annotations.rb
|
39
39
|
- lib/rscm/changes.rb
|
40
|
-
- lib/rscm/cvs
|
41
|
-
- lib/rscm/darcs
|
42
40
|
- lib/rscm/example.yaml
|
43
41
|
- lib/rscm/line_editor.rb
|
44
42
|
- lib/rscm/logging.rb
|
45
|
-
- lib/rscm/monotone
|
46
|
-
- lib/rscm/mooky
|
47
43
|
- lib/rscm/parser.rb
|
48
44
|
- lib/rscm/path_converter.rb
|
49
|
-
- lib/rscm/perforce
|
50
45
|
- lib/rscm/RSS.txt
|
51
|
-
- lib/rscm/
|
52
|
-
- lib/rscm/svn
|
46
|
+
- lib/rscm/scm
|
53
47
|
- lib/rscm/time_ext.rb
|
54
|
-
- lib/rscm/
|
55
|
-
- lib/rscm/
|
56
|
-
- lib/rscm/
|
57
|
-
- lib/rscm/
|
58
|
-
- lib/rscm/
|
59
|
-
- lib/rscm/
|
60
|
-
- lib/rscm/
|
61
|
-
- lib/rscm/
|
62
|
-
- lib/rscm/
|
48
|
+
- lib/rscm/scm/cvs.rb
|
49
|
+
- lib/rscm/scm/cvs_log_parser.rb
|
50
|
+
- lib/rscm/scm/darcs.rb
|
51
|
+
- lib/rscm/scm/monotone.rb
|
52
|
+
- lib/rscm/scm/monotone_log_parser.rb
|
53
|
+
- lib/rscm/scm/mooky.rb
|
54
|
+
- lib/rscm/scm/perforce.rb
|
55
|
+
- lib/rscm/scm/star_team.rb
|
56
|
+
- lib/rscm/scm/subversion.rb
|
57
|
+
- lib/rscm/scm/subversion_log_parser.rb
|
63
58
|
- bin/diff.exe
|
64
59
|
- bin/Diff_StdDisclaimer.html
|
65
|
-
- test/actual
|
66
|
-
- test/expected
|
67
60
|
- test/rscm
|
61
|
+
- test/rscm/abstract_scm_test.rb
|
62
|
+
- test/rscm/annotations_test.rb
|
68
63
|
- test/rscm/apply_label_scm_tests.rb
|
69
|
-
- test/rscm/attr_attr_test.rb
|
70
64
|
- test/rscm/changes_fixture.rb
|
71
65
|
- test/rscm/changes_test.rb
|
72
66
|
- test/rscm/changesets.yaml
|
73
|
-
- test/rscm/cvs
|
74
|
-
- test/rscm/darcs
|
75
67
|
- test/rscm/difftool_test.rb
|
76
68
|
- test/rscm/file_after_edit
|
77
69
|
- test/rscm/file_ext.rb
|
@@ -80,28 +72,27 @@ files:
|
|
80
72
|
- test/rscm/line_editor_test.rb
|
81
73
|
- test/rscm/mockit.rb
|
82
74
|
- test/rscm/mockit_test.rb
|
83
|
-
- test/rscm/monotone
|
84
|
-
- test/rscm/mooky
|
85
75
|
- test/rscm/parser_test.rb
|
86
76
|
- test/rscm/path_converter_test.rb
|
87
|
-
- test/rscm/
|
88
|
-
- test/rscm/starteam
|
89
|
-
- test/rscm/svn
|
77
|
+
- test/rscm/scm
|
90
78
|
- test/rscm/tempdir.rb
|
91
|
-
- test/rscm/
|
92
|
-
- test/rscm/
|
93
|
-
- test/rscm/
|
94
|
-
- test/rscm/
|
95
|
-
- test/rscm/
|
96
|
-
- test/rscm/
|
97
|
-
- test/rscm/
|
98
|
-
- test/rscm/
|
99
|
-
- test/rscm/
|
100
|
-
- test/rscm/
|
101
|
-
- test/rscm/
|
102
|
-
- test/rscm/
|
103
|
-
- test/rscm/
|
104
|
-
- test/rscm/svn
|
79
|
+
- test/rscm/scm/cvs-dataforge.log
|
80
|
+
- test/rscm/scm/cvs-test.log
|
81
|
+
- test/rscm/scm/cvs_log_parser_test.rb
|
82
|
+
- test/rscm/scm/cvs_test.rb
|
83
|
+
- test/rscm/scm/darcs_test.rb
|
84
|
+
- test/rscm/scm/keys
|
85
|
+
- test/rscm/scm/monotone_log_parser_test.rb
|
86
|
+
- test/rscm/scm/monotone_test.rb
|
87
|
+
- test/rscm/scm/mooky_test.rb
|
88
|
+
- test/rscm/scm/perforce_test.rb
|
89
|
+
- test/rscm/scm/star_team.rb
|
90
|
+
- test/rscm/scm/subversion_log_parser_test.rb
|
91
|
+
- test/rscm/scm/subversion_test.rb
|
92
|
+
- test/rscm/scm/svn-cargo.log
|
93
|
+
- test/rscm/scm/svn-growl.log
|
94
|
+
- test/rscm/scm/svn-growl2.log
|
95
|
+
- test/rscm/scm/svn-proxytoys.log
|
105
96
|
- testproject/damagecontrolled
|
106
97
|
- testproject/damagecontrolled/build.xml
|
107
98
|
- testproject/damagecontrolled/project.xml
|
data/lib/rscm/attr_attr.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
class Class
|
2
|
-
|
3
|
-
# Defines a description "meta attribute" on the class for the next
|
4
|
-
# attr_reader or attr_accessor. Example:
|
5
|
-
#
|
6
|
-
# TODO: take from test case
|
7
|
-
#
|
8
|
-
def desc(s, suffix=nil)
|
9
|
-
$attr_desc = s
|
10
|
-
end
|
11
|
-
|
12
|
-
alias old_attr_reader attr_reader
|
13
|
-
def attr_reader(*syms) #:nodoc:
|
14
|
-
syms.each do |sym|
|
15
|
-
class_eval <<-EOS
|
16
|
-
@@#{sym.id2name}_desc = $attr_desc
|
17
|
-
|
18
|
-
def self.#{sym.id2name}_desc
|
19
|
-
@@#{sym}_desc
|
20
|
-
end
|
21
|
-
|
22
|
-
def #{sym.id2name}_desc
|
23
|
-
@@#{sym}_desc
|
24
|
-
end
|
25
|
-
EOS
|
26
|
-
end
|
27
|
-
$attr_desc = nil
|
28
|
-
old_attr_reader(*syms)
|
29
|
-
end
|
30
|
-
|
31
|
-
def attr_accessor(*syms) #:nodoc:
|
32
|
-
attr_reader(*syms)
|
33
|
-
attr_writer(*syms)
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
@@ -1,107 +0,0 @@
|
|
1
|
-
require 'rscm/abstract_scm'
|
2
|
-
require 'fileutils'
|
3
|
-
|
4
|
-
module RSCM
|
5
|
-
class Monotone < AbstractSCM
|
6
|
-
def initialize(db_file=nil, branch=nil, key=nil, passphrase=nil, keys_file=nil)
|
7
|
-
@db_file = File.expand_path(db_file) if db_file
|
8
|
-
@branch = branch
|
9
|
-
@key = key
|
10
|
-
@passphrase = passphrase
|
11
|
-
@keys_file = keys_file
|
12
|
-
end
|
13
|
-
|
14
|
-
def name
|
15
|
-
"Monotone"
|
16
|
-
end
|
17
|
-
|
18
|
-
def create
|
19
|
-
FileUtils.mkdir_p(File.dirname(@db_file))
|
20
|
-
monotone("db init")
|
21
|
-
monotone("read") do |io|
|
22
|
-
io.write(File.open(@keys_file).read)
|
23
|
-
io.close_write
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def transactional?
|
28
|
-
true
|
29
|
-
end
|
30
|
-
|
31
|
-
def import(dir, message)
|
32
|
-
dir = File.expand_path(dir)
|
33
|
-
|
34
|
-
# post 0.17, this can be "cd dir && cmd add ."
|
35
|
-
|
36
|
-
files = Dir["#{dir}/*"]
|
37
|
-
relative_paths_to_add = to_relative(dir, files)
|
38
|
-
|
39
|
-
with_working_dir(dir) do
|
40
|
-
monotone("add #{relative_paths_to_add.join(' ')}")
|
41
|
-
monotone("commit '#{message}'", @branch, @key) do |io|
|
42
|
-
io.puts(@passphrase)
|
43
|
-
io.close_write
|
44
|
-
io.read
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
def checked_out?(checkout_dir)
|
50
|
-
File.exists?("#{checkout_dir}/MT")
|
51
|
-
end
|
52
|
-
|
53
|
-
def uptodate?(checkout_dir, from_identifier)
|
54
|
-
if (!checked_out?(checkout_dir))
|
55
|
-
false
|
56
|
-
else
|
57
|
-
with_working_dir(checkout_dir) do
|
58
|
-
monotone("heads") do |stdout|
|
59
|
-
stdout.each_line do |line|
|
60
|
-
next if (line =~ /^monotone:/)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
def commit(checkout_dir, message)
|
68
|
-
|
69
|
-
end
|
70
|
-
|
71
|
-
protected
|
72
|
-
|
73
|
-
# Checks out silently. Called by superclass' checkout.
|
74
|
-
def checkout_silent(checkout_dir, to_identifier)
|
75
|
-
monotone("checkout #{checkout_dir}", @branch, @key) do |stdout|
|
76
|
-
stdout.each_line do |line|
|
77
|
-
# TODO: checkout prints nothing to stdout - may be fixed in a future monotone.
|
78
|
-
# When/if it happens we may want to do a kosher implementation of checkout
|
79
|
-
# to get yields as checkouts happen.
|
80
|
-
yield line if block_given?
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
# Administrative files that should be ignored when counting files.
|
86
|
-
def ignore_paths
|
87
|
-
return [/MT/, /\.mt-attrs/]
|
88
|
-
end
|
89
|
-
|
90
|
-
private
|
91
|
-
|
92
|
-
def monotone(monotone_cmd, branch=nil, key=nil)
|
93
|
-
branch_opt = branch ? "--branch=\"#{branch}\"" : ""
|
94
|
-
key_opt = key ? "--key=\"#{key}\"" : ""
|
95
|
-
cmd = "monotone --db=\"#{@db_file}\" #{branch_opt} #{key_opt} #{monotone_cmd}"
|
96
|
-
safer_popen(cmd, "r+") do |io|
|
97
|
-
if(block_given?)
|
98
|
-
return(yield(io))
|
99
|
-
else
|
100
|
-
# just read stdout so we can exit
|
101
|
-
io.read
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
end
|
107
|
-
end
|
data/lib/rscm/mooky/mooky.rb
DELETED
data/test/actual
DELETED
data/test/expected
DELETED
data/test/rscm/attr_attr_test.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'rscm/attr_attr'
|
3
|
-
|
4
|
-
module RSCM
|
5
|
-
class Whatever
|
6
|
-
desc "huba luba"
|
7
|
-
attr_accessor :foo
|
8
|
-
|
9
|
-
attr_accessor :ping
|
10
|
-
|
11
|
-
desc "bang bang"
|
12
|
-
attr_accessor :bar, :zap
|
13
|
-
end
|
14
|
-
|
15
|
-
class AttrAttrTest < Test::Unit::TestCase
|
16
|
-
def test_should_allow_attr_attr_description
|
17
|
-
assert_equal("huba luba", Whatever.foo_desc)
|
18
|
-
assert_nil(Whatever.ping_desc)
|
19
|
-
assert_equal("bang bang", Whatever.bar_desc)
|
20
|
-
assert_equal("bang bang", Whatever.zap_desc)
|
21
|
-
end
|
22
|
-
|
23
|
-
def TODOtest_should_allow_attr_value_attr_description
|
24
|
-
whatever = Whatever.new
|
25
|
-
|
26
|
-
assert_equal("huba luba", whatever.foo._desc)
|
27
|
-
assert_nil(whatever.ping._desc)
|
28
|
-
assert_equal("bang bang", whatever.bar._desc)
|
29
|
-
assert_equal("bang bang", whatever.zap._desc)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|