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:
When copying files, ensure the directory is properly created first.
francois (author)
Wed Mar 26 10:48:47 -0700 2008
commit  ac2278267cb5730fc7126aeb73d6c4bf2759c719
tree    eb7093a598656d7980d467b6a3837b8b1bd5f163
parent  949f6671c0125d51506691ffc7fb406bbeb59622
...
46
47
48
49
 
50
51
52
...
46
47
48
 
49
50
51
52
0
@@ -46,7 +46,7 @@
0
         end
0
 
0
         def copy_to(relpath, abspath)
0
- Pathname.new(abspath).dirname.mkpath rescue nil
0
+ Pathname.new(abspath).dirname.mkpath
0
           FileUtils.cp(@dir + relpath, abspath)
0
         end
0
       end
...
51
52
53
54
 
55
56
57
...
51
52
53
 
54
55
56
57
0
@@ -51,7 +51,7 @@
0
       def copy_to(relpath, abspath)
0
         raise ArgumentError, "Revision #{revision} of #{repository.url} was never checked out -- can't iterate over files" unless @wcpath
0
 
0
- Pathname.new(abspath).dirname.mkdir rescue nil
0
+ Pathname.new(abspath).dirname.mkpath
0
         FileUtils.cp(@wcpath + relpath, abspath)
0
       end
0
     end

Comments

    No one has commented yet.