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:
Merge branch 'paul_master' into paul_merge
francois (author)
Sat Mar 22 20:18:29 -0700 2008
commit  b7ef1fb5411c1c0211c9974f6cc512f0b438094a
tree    bc7c9652b5f560303066d30b2f0454d3b84deedc
parent  a620cf070668a272884670d46319a4d8ddc8a2c8 parent  7d815cd1c4faf081b710d1f6ead5fb324bcc2fb6
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-#!/usr/bin/env ruby
0
+#! /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
0
 require "piston"
0
 
0
 # Chain to the real command-line client
...
31
32
33
 
34
35
36
37
38
 
39
40
41
...
31
32
33
34
35
36
37
38
39
40
41
42
43
0
@@ -31,11 +31,13 @@
0
           @dir.find do |path|
0
             Find.prune if path.to_s =~ %r{/[.]git}
0
             next if @dir == path
0
+ next if File.directory?(path)
0
             yield path.relative_path_from(@dir)
0
           end
0
         end
0
 
0
         def copy_to(relpath, abspath)
0
+ Pathname.new(abspath).dirname.mkpath rescue nil
0
           FileUtils.cp(@dir + relpath, abspath)
0
         end
0
       end
...
12
13
14
15
 
16
17
18
...
12
13
14
 
15
16
17
18
0
@@ -12,7 +12,7 @@
0
       end
0
 
0
       def guess(path)
0
- path = path.kind_of?(Pathname) ? path : Pathname.new(path)
0
+ path = path.kind_of?(Pathname) ? path : Pathname.new(path.to_s)
0
         logger.debug {"Guessing the working copy type of #{path.inspect}"}
0
         handler = handlers.detect do |handler|
0
           logger.debug {"Asking #{handler.name} if it understands #{path}"}

Comments

    No one has commented yet.