public
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
New rake test to setup a repository for manual testing easier.
francois (author)
Mon Jul 21 11:17:26 -0700 2008
commit  9cc9e37b081187600f1a57a0d0ca84f5a06b8e7c
tree    5f8e1c7b3833305307364fa76c67a3830b7ca221
parent  ac5c408ecc893fae8f13f1ba7b371be4e2fc1f60
...
27
28
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
0
@@ -27,4 +27,35 @@ namespace :test do
0
       File.mtime(path) > cutoff_at
0
     end
0
   end
0
+
0
+ desc "Prepares an SVN and Git repository for manual testing"
0
+ task :prep do
0
+ require "pathname"
0
+ PISTON_ROOT = Pathname.new(File.expand_path(Dir.pwd))
0
+ MANUAL_ROOT = PISTON_ROOT + "tmp/manual"
0
+ rm_rf MANUAL_ROOT; mkdir MANUAL_ROOT
0
+ REPOS_ROOT = MANUAL_ROOT + "repos"
0
+ REPOS_URL = "file://#{REPOS_ROOT}"
0
+ WC_ROOT = MANUAL_ROOT + "wc"
0
+
0
+ sh "svnadmin create #{REPOS_ROOT}"
0
+ sh "svn checkout #{REPOS_URL} #{WC_ROOT}"
0
+ Dir.chdir(WC_ROOT) do
0
+ sh "svn mkdir project plugins plugins/libcalc plugins/libpower"
0
+ Dir.chdir("plugins/libcalc") do
0
+ File.open("README", "w") {|io| io.puts "libcalc\n-------\n\nThis is libcalc\n"}
0
+ File.open("libcalc.rb", "w") {|io| io.puts "# libcaclc.rb\n# Ensure this is powerful enough\n"}
0
+ end
0
+ Dir.chdir("plugins/libpower") do
0
+ File.open("README", "w") {|io| io.puts "libpower\n-------\n\nThis is libpower\n"}
0
+ end
0
+ sh "svn add plugins/libcalc/README plugins/libcalc/libcalc.rb plugins/libpower/README"
0
+ sh "svn commit -m 'Initial revision'"
0
+ sh "ruby -I#{PISTON_ROOT}/lib #{PISTON_ROOT}/bin/piston import #{REPOS_URL}"
0
+ Dir.chdir("plugins/libcalc") do
0
+ File.open("libcalc.rb", "w") {|io| io.puts "# libcalc.rb\n# Ensure this is powerful enough\n\nclass Libcalc\nend\n"}
0
+ end
0
+ sh "svn commit -m 'Implement libcalc'"
0
+ end
0
+ end
0
 end

Comments

    No one has commented yet.