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
Search Repo:
New Git/Svn import integration test.
francois (author)
Sun Mar 23 11:06:56 -0700 2008
commit  e4f7f9359986cdd992624a5e45dd902aa05a523a
tree    2aef21d3b8020dd2e89d5f62fb13651779d292f2
parent  eef926be5a7274267b895ad0e4428503baa81d92
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
0
@@ -1 +1,100 @@
0
+require File.dirname(__FILE__) + "/../test_helper"
0
+require File.dirname(__FILE__) + "/../integration_helpers"
0
+
0
+class TestImportGitSvn < Test::Unit::TestCase
0
+ attr_reader :root_path, :repos_path, :wc_path
0
+
0
+ def setup
0
+ @root_path = Pathname.new("/tmp/import_git_svn")
0
+ @repos_path = @root_path + "repos"
0
+ @wc_path = @root_path + "wc"
0
+
0
+ root_path.rmtree rescue nil
0
+ root_path.mkpath
0
+
0
+ svnadmin :create, repos_path
0
+ svn :checkout, "file://#{repos_path}", wc_path
0
+ svn :mkdir, wc_path + "trunk", wc_path + "tags", wc_path + "branches", wc_path + "trunk/vendor"
0
+ svn :commit, wc_path, "--message", "'first commit'"
0
+ end
0
+
0
+ def teardown
0
+ root_path.rmtree rescue nil
0
+ end
0
+
0
+ def test_import
0
+ piston(:import, "git://github.com/technoweenie/attachment_fu.git", wc_path + "trunk/vendor/attachment_fu")
0
+
0
+ assert_equal ADD_STATUS.split("\n").sort, svn(:status, wc_path + "trunk/vendor").gsub((wc_path + "trunk/").to_s, "").split("\n").sort
0
+
0
+ info = YAML.load(File.read(wc_path + "trunk/vendor/attachment_fu/.piston.yml"))
0
+ assert_equal 1, info["format"]
0
+ assert_equal "git://github.com/technoweenie/attachment_fu.git", info["handler"][Piston::Git::URL]
0
+ assert_equal "416fbb0017fa4ecaccfca4bcada592d694d532e1", info["handler"][Piston::Git::COMMIT]
0
+
0
+ end
0
+
0
+ ADD_STATUS = %Q(A vendor/attachment_fu
0
+A vendor/attachment_fu/test
0
+A vendor/attachment_fu/test/test_helper.rb
0
+A vendor/attachment_fu/test/processors
0
+A vendor/attachment_fu/test/processors/mini_magick_test.rb
0
+A vendor/attachment_fu/test/processors/core_image_test.rb
0
+A vendor/attachment_fu/test/processors/image_science_test.rb
0
+A vendor/attachment_fu/test/processors/gd2_test.rb
0
+A vendor/attachment_fu/test/processors/rmagick_test.rb
0
+A vendor/attachment_fu/test/basic_test.rb
0
+A vendor/attachment_fu/test/schema.rb
0
+A vendor/attachment_fu/test/database.yml
0
+A vendor/attachment_fu/test/base_attachment_tests.rb
0
+A vendor/attachment_fu/test/fixtures
0
+A vendor/attachment_fu/test/fixtures/files
0
+A vendor/attachment_fu/test/fixtures/files/foo.txt
0
+A vendor/attachment_fu/test/fixtures/files/fake
0
+A vendor/attachment_fu/test/fixtures/files/fake/rails.png
0
+A vendor/attachment_fu/test/fixtures/files/rails.png
0
+A vendor/attachment_fu/test/fixtures/attachment.rb
0
+A vendor/attachment_fu/test/backends
0
+A vendor/attachment_fu/test/backends/file_system_test.rb
0
+A vendor/attachment_fu/test/backends/db_file_test.rb
0
+A vendor/attachment_fu/test/backends/remote
0
+A vendor/attachment_fu/test/backends/remote/s3_test.rb
0
+A vendor/attachment_fu/test/validation_test.rb
0
+A vendor/attachment_fu/test/extra_attachment_test.rb
0
+A vendor/attachment_fu/test/geometry_test.rb
0
+A vendor/attachment_fu/Rakefile
0
+A vendor/attachment_fu/init.rb
0
+A vendor/attachment_fu/lib
0
+A vendor/attachment_fu/lib/technoweenie
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/processors
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/core_image_processor.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/gd2_processor.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/backends
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb
0
+A vendor/attachment_fu/lib/technoweenie/attachment_fu.rb
0
+A vendor/attachment_fu/lib/geometry.rb
0
+A vendor/attachment_fu/CHANGELOG
0
+A vendor/attachment_fu/amazon_s3.yml.tpl
0
+A vendor/attachment_fu/install.rb
0
+A vendor/attachment_fu/.piston.yml
0
+A vendor/attachment_fu/vendor
0
+A vendor/attachment_fu/vendor/red_artisan
0
+A vendor/attachment_fu/vendor/red_artisan/core_image
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/processor.rb
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/filters
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/filters/watermark.rb
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/filters/color.rb
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/filters/effects.rb
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/filters/scale.rb
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
0
+A vendor/attachment_fu/vendor/red_artisan/core_image/filters/perspective.rb
0
+A vendor/attachment_fu/README
0
+)
0
+end

Comments

    No one has commented yet.