dev_svn 0.0.3 → 0.0.4
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/lib/svn.rb +6 -6
- metadata +1 -1
data/lib/svn.rb
CHANGED
@@ -37,14 +37,14 @@ class Svn
|
|
37
37
|
Dir.mktmpdir{|dir|
|
38
38
|
|
39
39
|
# checkout new subversion directory
|
40
|
-
output = output + "\nsvn checkout #{destination} to_publish_checkout"
|
41
|
-
if(!`svn checkout #{destination} to_publish_checkout`.include?('Checked out'))
|
42
|
-
raise "failure 'svn checkout #{destination} to_publish_checkout'"
|
40
|
+
output = output + "\nsvn checkout #{destination} #{dir}/to_publish_checkout"
|
41
|
+
if(!`svn checkout #{destination} #{dir}/to_publish_checkout`.include?('Checked out'))
|
42
|
+
raise "failure 'svn checkout #{destination} #{dir}/to_publish_checkout'"
|
43
43
|
end
|
44
44
|
|
45
45
|
# copy files into the checkout out subversion directory to_publish
|
46
|
-
raise "to_publish_checkout does not exist" if(!File.exists?(
|
47
|
-
Dir.chdir(
|
46
|
+
raise "#{dir}/to_publish_checkout does not exist" if(!File.exists?("#{dir}/to_publish_checkout"))
|
47
|
+
Dir.chdir("#{dir}/to_publish_checkout") do
|
48
48
|
File.open('add.txt','w'){|add_file|
|
49
49
|
|
50
50
|
files.each{|f|
|
@@ -66,7 +66,7 @@ class Svn
|
|
66
66
|
end
|
67
67
|
|
68
68
|
#begin
|
69
|
-
|
69
|
+
FileUtils.rm_r "#{dir}/to_publish_checkout"
|
70
70
|
output
|
71
71
|
}
|
72
72
|
end
|