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
Fixed piston update using Git.
btakita (author)
Fri Aug 22 20:06:10 -0700 2008
commit  65b511dd5e34df5c11e81895185feff04532b205
tree    64d2520cde887c47034a8aef0d5410d11c69ebe9
parent  e99a98465947b0bdd3b61adb339c645290292be0
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-#!/usr/bin/env ruby
0
+#! /usr/bin/ruby1.8
0
 require "piston"
0
 
0
 # Chain to the real command-line client
...
66
67
68
69
70
 
 
71
72
73
...
66
67
68
 
 
69
70
71
72
73
0
@@ -66,8 +66,8 @@ 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 + "*").chidlren.reject {|item| item == ".git"}.each {|item| puts "cp -r #{item}"; FileUtils.cp_r(item, todir)}
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
         Dir.chdir(todir) do
0
           git(:add, ".")
0
           deletions = git(:status).split("\n").grep(/deleted:/).map {|row| row.split(":", 2).last}

Comments

    No one has commented yet.