public
Fork of francois/piston
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/tapajos/piston.git
Ignoring generated piston files. Expanding path for test_helper requires. 
Fixed a test.
btakita (author)
Sat Aug 23 02:56:26 -0700 2008
commit  8716841061f83e669d85b6c73f0955437c75bcd7
tree    0b54383af2bf7175226815528e7f0aab1a41a485
parent  65b511dd5e34df5c11e81895185feff04532b205
...
4
5
6
 
 
7
...
4
5
6
7
8
9
0
@@ -4,3 +4,5 @@ pkg
0
 *.iml
0
 *.ipr
0
 *.iws
0
+.config
0
+InstalledFiles
0
\ No newline at end of file
...
66
67
68
69
70
 
 
 
 
 
 
 
 
 
 
 
 
71
72
73
...
66
67
68
 
 
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
0
@@ -66,8 +66,18 @@ module Piston
0
         puts "exist? #{todir.exist?}"
0
         puts "file? #{todir.file?}"
0
         puts "directory? #{todir.directory?}"
0
- todir.children.reject {|item| item == ".git"}.each {|item| puts "rm -rf #{item}"; FileUtils.rm_rf(item)}
0
- path.children.reject {|item| item == ".git"}.each {|item| puts "cp -r #{item}"; FileUtils.cp_r(item, todir)}
0
+ todir.children.reject do |item|
0
+ item == ".git"
0
+ end.each do |item|
0
+ puts "rm -rf #{item}"
0
+ FileUtils.rm_rf(item)
0
+ end
0
+ path.children.reject do |item|
0
+ item == ".git"
0
+ end.each do |item|
0
+ puts "cp -r #{item}"
0
+ FileUtils.cp_r(item, todir)
0
+ end
0
         Dir.chdir(todir) do
0
           git(:add, ".")
0
           deletions = git(:status).split("\n").grep(/deleted:/).map {|row| row.split(":", 2).last}
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 require File.dirname(__FILE__) + "/../integration_helpers"
0
 
0
 class TestImportGitGit < Test::Unit::TestCase
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 require File.dirname(__FILE__) + "/../integration_helpers"
0
 
0
 class TestImportGitSvn < Test::Unit::TestCase
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 require File.dirname(__FILE__) + "/../integration_helpers"
0
 
0
 class TestImportSvnGit < Test::Unit::TestCase
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 require File.dirname(__FILE__) + "/../integration_helpers"
0
 
0
 class TestImportSvnSvn < Test::Unit::TestCase
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitCommitCheckout < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 require "find"
0
 
0
 class TestGitCommitEach < Test::Unit::TestCase
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitCommitRememberance < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitCommitValidation < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitRepositoryAt < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitRepositoryBasename < Test::Unit::TestCase
0
   def test_basename_is_urls_last_component_minus_dot_git
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitRepositoryBranchname < Test::Unit::TestCase
0
   def test_branchname_is_nil_when_no_branch_in_url
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitRepositoryGuessing < Test::Unit::TestCase
0
   def test_understands_git_protocol
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitWorkingCopyCopying < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitWorkingCopyCreation < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitWorkingCopyExistence < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitWorkingCopyFinalization < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitWorkingCopyGuessing < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
12
13
14
15
16
17
18
19
...
 
1
2
3
4
...
12
13
14
 
 
 
 
15
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestMerging < Test::Unit::TestCase
0
   def setup
0
@@ -12,8 +12,4 @@ class TestMerging < Test::Unit::TestCase
0
     @to = mock("torevision")
0
     @todir = @wcdir + "/.vendor"
0
   end
0
-
0
- def test_flunk
0
- flunk
0
- end
0
 end
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestGitWorkingCopyRememberance < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnRepositoryAt < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnRepositoryBasename < Test::Unit::TestCase
0
   def test_basename_is_urls_path_last_component
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnRepositoryGuessing < Test::Unit::TestCase
0
   def test_guesses_with_svn_protocol
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnRevisionCheckout < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnRevisionEach < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnRevisionRememberance < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnRevisionValidation < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnWorkingCopyCopying < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnWorkingCopyCreation < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnWorkingCopyExistence < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestWorkingCopyExternals < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnWorkingCopyFinalization < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnWorkingCopyGuessing < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestMerging < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
 class TestSvnWorkingCopyRememberance < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
 class TestImport < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
 class TestInfo < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
 class TestLockUnlock < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
 class TestRepository < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
 class TestRevision < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
 class TestWorkingCopyGuessing < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
 class TestWorkingCopyInfo < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
 class TestWorkingCopyRememberance < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.dirname(__FILE__) + "/../../test_helper"
0
+require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
 class TestWorkingCopyValidate < Test::Unit::TestCase
0
   def setup

Comments

    No one has commented yet.