rscm 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +7 -0
- data/README +1 -1
- data/Rakefile +1 -1
- data/lib/rscm/base.rb +9 -2
- data/lib/rscm/scm/cvs.rb +4 -0
- data/lib/rscm/scm/monotone.rb +4 -0
- data/lib/rscm/scm/perforce.rb +4 -0
- data/lib/rscm/scm/subversion.rb +7 -7
- metadata +2 -2
data/CHANGES
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
= RSCM Changelog
|
2
2
|
|
3
|
+
== Version 0.3.13
|
4
|
+
|
5
|
+
Improved trigger support
|
6
|
+
|
7
|
+
* Added Base.trigger_mechanism and implementation for subclasses that support triggering.
|
8
|
+
* Removed Subversion.to_yaml_properties, which prevented additional attributes.
|
9
|
+
|
3
10
|
== Version 0.3.12
|
4
11
|
|
5
12
|
Bugfix release
|
data/README
CHANGED
data/Rakefile
CHANGED
data/lib/rscm/base.rb
CHANGED
@@ -30,8 +30,9 @@ module RSCM
|
|
30
30
|
# * can_create_central?
|
31
31
|
# * import_central
|
32
32
|
# * install_trigger
|
33
|
-
# * supports_trigger?
|
33
|
+
# * supports_trigger? / can_install_trigger?
|
34
34
|
# * trigger_installed?
|
35
|
+
# * trigger_mechanism
|
35
36
|
# * uninstall_trigger
|
36
37
|
#
|
37
38
|
# Some methods are a bit fuzzy with respect to their relevance to the working copy or
|
@@ -41,7 +42,7 @@ module RSCM
|
|
41
42
|
# * checkout_command_line
|
42
43
|
# * label
|
43
44
|
# * name
|
44
|
-
# * transactional?
|
45
|
+
# * transactional? / atomic?
|
45
46
|
# * update_command_line
|
46
47
|
#
|
47
48
|
# Some of the methods in this API use +from_identifier+ and +to_identifier+.
|
@@ -238,6 +239,12 @@ module RSCM
|
|
238
239
|
# determined programmatically.
|
239
240
|
false
|
240
241
|
end
|
242
|
+
alias :can_install_trigger? :supports_trigger?
|
243
|
+
|
244
|
+
# Descriptive name of the trigger mechanism
|
245
|
+
def trigger_mechanism
|
246
|
+
"Unknown"
|
247
|
+
end
|
241
248
|
|
242
249
|
# Installs +trigger_command+ in the SCM.
|
243
250
|
# The +install_dir+ parameter should be an empty local
|
data/lib/rscm/scm/cvs.rb
CHANGED
@@ -116,6 +116,10 @@ module RSCM
|
|
116
116
|
def apply_label(label)
|
117
117
|
cvs(@checkout_dir, "tag -c #{label}")
|
118
118
|
end
|
119
|
+
|
120
|
+
def trigger_mechanism
|
121
|
+
"CVSROOT/loginfo"
|
122
|
+
end
|
119
123
|
|
120
124
|
def install_trigger(trigger_command, trigger_files_checkout_dir)
|
121
125
|
raise "mod can't be null or empty" if (mod.nil? || mod == "")
|
data/lib/rscm/scm/monotone.rb
CHANGED
data/lib/rscm/scm/perforce.rb
CHANGED
data/lib/rscm/scm/subversion.rb
CHANGED
@@ -25,10 +25,6 @@ module RSCM
|
|
25
25
|
@password = ""
|
26
26
|
end
|
27
27
|
|
28
|
-
def to_yaml_properties
|
29
|
-
["@url", "@path", "@username", "@password"]
|
30
|
-
end
|
31
|
-
|
32
28
|
def add(relative_filename)
|
33
29
|
svn(@checkout_dir, "add #{relative_filename}")
|
34
30
|
end
|
@@ -143,6 +139,10 @@ module RSCM
|
|
143
139
|
# local?
|
144
140
|
end
|
145
141
|
|
142
|
+
def trigger_mechanism
|
143
|
+
"hooks/post-commit"
|
144
|
+
end
|
145
|
+
|
146
146
|
def create_central
|
147
147
|
native_path = PathConverter.filepath_to_nativepath(svnrootdir, true)
|
148
148
|
mkdir_p(PathConverter.nativepath_to_filepath(native_path))
|
@@ -158,11 +158,11 @@ module RSCM
|
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
|
-
def install_trigger(trigger_command,
|
161
|
+
def install_trigger(trigger_command, trigger_files_checkout_dir)
|
162
162
|
if (WINDOWS)
|
163
|
-
install_win_trigger(trigger_command,
|
163
|
+
install_win_trigger(trigger_command, trigger_files_checkout_dir)
|
164
164
|
else
|
165
|
-
install_unix_trigger(trigger_command,
|
165
|
+
install_unix_trigger(trigger_command, trigger_files_checkout_dir)
|
166
166
|
end
|
167
167
|
end
|
168
168
|
|
metadata
CHANGED