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:
Git/Git integration test written and green.
francois (author)
Sun Mar 23 11:12:39 -0700 2008
commit  516aaa2f178e69e259f6c88c7fff8e3be34550a9
tree    ac8cc46fd1de486675d2f79a412c6869eafd2381
parent  e4f7f9359986cdd992624a5e45dd902aa05a523a
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
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
0
@@ -0,0 +1,92 @@
0
+require File.dirname(__FILE__) + "/../test_helper"
0
+require File.dirname(__FILE__) + "/../integration_helpers"
0
+
0
+class TestImportGitGit < Test::Unit::TestCase
0
+ attr_reader :root_path, :repos_path, :wc_path
0
+
0
+ def setup
0
+ @root_path = Pathname.new("/tmp/import_git_git")
0
+ @wc_path = @root_path + "wc"
0
+
0
+ root_path.rmtree rescue nil
0
+ root_path.mkpath
0
+
0
+ wc_path.mkpath
0
+ Dir.chdir(wc_path) do
0
+ git(:init)
0
+ File.open(wc_path + "README", "wb") {|f| f.write "Hello World!"}
0
+ (wc_path + "vendor").mkdir
0
+ File.open(wc_path + "vendor/.gitignore", "wb") {|f| f.write "*.swp"}
0
+ git(:add, ".")
0
+ git(:commit, "-m", "'first commit'")
0
+ end
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 + "vendor/attachment_fu")
0
+
0
+ Dir.chdir(wc_path) do
0
+ assert_equal STATUS.split("\n").sort, git(:status).split("\n").sort
0
+ end
0
+
0
+ info = YAML.load(File.read(wc_path + "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
+ end
0
+
0
+ STATUS = %Q(# On branch master
0
+# Changes to be committed:
0
+# (use "git reset HEAD <file>..." to unstage)
0
+#
0
+#\tnew file: vendor/attachment_fu/.piston.yml
0
+#\tnew file: vendor/attachment_fu/CHANGELOG
0
+#\tnew file: vendor/attachment_fu/README
0
+#\tnew file: vendor/attachment_fu/Rakefile
0
+#\tnew file: vendor/attachment_fu/amazon_s3.yml.tpl
0
+#\tnew file: vendor/attachment_fu/init.rb
0
+#\tnew file: vendor/attachment_fu/install.rb
0
+#\tnew file: vendor/attachment_fu/lib/geometry.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/core_image_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/gd2_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb
0
+#\tnew file: vendor/attachment_fu/test/backends/db_file_test.rb
0
+#\tnew file: vendor/attachment_fu/test/backends/file_system_test.rb
0
+#\tnew file: vendor/attachment_fu/test/backends/remote/s3_test.rb
0
+#\tnew file: vendor/attachment_fu/test/base_attachment_tests.rb
0
+#\tnew file: vendor/attachment_fu/test/basic_test.rb
0
+#\tnew file: vendor/attachment_fu/test/database.yml
0
+#\tnew file: vendor/attachment_fu/test/extra_attachment_test.rb
0
+#\tnew file: vendor/attachment_fu/test/fixtures/attachment.rb
0
+#\tnew file: vendor/attachment_fu/test/fixtures/files/fake/rails.png
0
+#\tnew file: vendor/attachment_fu/test/fixtures/files/foo.txt
0
+#\tnew file: vendor/attachment_fu/test/fixtures/files/rails.png
0
+#\tnew file: vendor/attachment_fu/test/geometry_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/core_image_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/gd2_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/image_science_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/mini_magick_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/rmagick_test.rb
0
+#\tnew file: vendor/attachment_fu/test/schema.rb
0
+#\tnew file: vendor/attachment_fu/test/test_helper.rb
0
+#\tnew file: vendor/attachment_fu/test/validation_test.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/color.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/effects.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/perspective.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/scale.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/watermark.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/processor.rb
0
+#
0
+)
0
+end

Comments

    No one has commented yet.