rscm 0.3.15 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +7 -0
- data/README +1 -1
- data/Rakefile +1 -1
- data/lib/rscm/base.rb +5 -0
- data/lib/rscm/historic_file.rb +3 -2
- data/lib/rscm/revision_file.rb +1 -1
- metadata +1 -1
data/CHANGES
CHANGED
data/README
CHANGED
data/Rakefile
CHANGED
data/lib/rscm/base.rb
CHANGED
@@ -212,6 +212,11 @@ module RSCM
|
|
212
212
|
def ls(relative_path)
|
213
213
|
raise NotImplementedError
|
214
214
|
end
|
215
|
+
|
216
|
+
# Opens a revision_file
|
217
|
+
def open(revision_file, &block) #:yield: io
|
218
|
+
raise NotImplementedError
|
219
|
+
end
|
215
220
|
|
216
221
|
# Whether the working copy is in synch with the central
|
217
222
|
# repository's revision/time identified by +identifier+.
|
data/lib/rscm/historic_file.rb
CHANGED
@@ -4,6 +4,7 @@ module RSCM
|
|
4
4
|
attr_reader :relative_path
|
5
5
|
|
6
6
|
def initialize(relative_path, directory, scm)
|
7
|
+
raise "Not a String: '#{relative_path}' (#{relative_path.class.name})" unless relative_path.is_a? String
|
7
8
|
@relative_path, @directory, @scm = relative_path, directory, scm
|
8
9
|
end
|
9
10
|
|
@@ -18,8 +19,8 @@ module RSCM
|
|
18
19
|
files_s = revision.files.collect{|f| f.to_s}.join("\n")
|
19
20
|
raise "The file-specific revision didn't have exactly one file, but #{revision.files.length}:\n#{files_s}"
|
20
21
|
end
|
21
|
-
if(revision.files[0].path
|
22
|
-
raise "The file-specific revision didn't have expected path #{@relative_path}, but #{revision.files[0].path}"
|
22
|
+
if(!revision.files[0].path.eql?(@relative_path))
|
23
|
+
raise "The file-specific revision didn't have expected path '#{@relative_path}', but '#{revision.files[0].path}'"
|
23
24
|
end
|
24
25
|
revision.files[0]
|
25
26
|
end
|
data/lib/rscm/revision_file.rb
CHANGED