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:
Moved the integration test's tmpdir to /tmp.
francois (author)
Sat Mar 22 19:58:43 -0700 2008
commit  68f3e271170a14fe0d20f844703b80e5d62e9aa6
tree    f38368adb91a99dd067cbdff30fe18d8cf40cd2b
parent  a3c673d0a7b6118f3e0784ddfede04e1510b8b82
...
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
...
30
31
32
33
 
34
35
36
...
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
...
32
33
34
 
35
36
37
38
0
@@ -2,25 +2,27 @@
0
 require File.dirname(__FILE__) + "/../integration_helpers"
0
 
0
 class TestImportSvnSvn < Test::Unit::TestCase
0
- attr_reader :r :repos_path, :wc_path
0
+ attr_reader :root_path, :repos_path, :wc_path
0
 
0
   def setup
0
- @repos_path = PISTON_ROOT + "tmp/import_real/repos"
0
- @wc_path = PISTON_ROOT + "tmp/import_real/wc"
0
+ @root_path = Pathname.new("/tmp/import_svn_svn")
0
+ @repos_path = @root_path + "repos"
0
+ @wc_path = @root_path + "wc"
0
 
0
- repos_path.parent.rmtree rescue nil
0
- repos_path.parent.mkpath
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
- repos_path.parent.rmtree rescue nil
0
+ root_path.rmtree rescue nil
0
   end
0
 
0
   def test_import
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
     piston :import, "http://dev.rubyonrails.org/svn/rails/plugins/ssl_requirement/", wc_path + "trunk/vendor/ssl_requirement"
0
 
0
     assert_equal "A vendor/ssl_requirement
0
@@ -30,7 +32,7 @@
0
 A vendor/ssl_requirement/lib/ssl_requirement.rb
0
 A vendor/ssl_requirement/.piston.yml
0
 A vendor/ssl_requirement/README
0
-".split.sort, svn(:status, wc_path + "trunk/vendor/").gsub((wc_path + "trunk/").to_s, "").split.sort
0
+".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/ssl_requirement/.piston.yml"))
0
     assert_equal 1, info["format"]

Comments

    No one has commented yet.