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:
Pulled WorkingCopy#copy_from to Piston::WorkingCopy.
francois (author)
Sun Mar 16 19:43:20 -0700 2008
commit  0b96e22dc0b68781ea443ae39afab6c246dd1b47
tree    19e3468e9ae95e254b9bd6e36c0872c66ec8e3ec
parent  9b7391c8f907342387fff51aef4f020f1065ae85
...
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
...
39
40
41
 
 
 
 
 
 
 
 
 
 
42
43
44
0
@@ -39,16 +39,6 @@
0
         git(:add, path)
0
       end
0
 
0
- def copy_from(revision)
0
- revision.each do |relpath|
0
- target = path + relpath
0
- target.dirname.mkdir rescue nil
0
-
0
- logger.debug {"Copying #{relpath} to #{target}"}
0
- revision.copy_to(relpath, target)
0
- end
0
- end
0
-
0
       def finalize
0
         Dir.chdir(path) { git(:add, ".") }
0
       end
...
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
...
35
36
37
 
 
 
 
 
 
 
 
 
 
38
39
40
0
@@ -35,16 +35,6 @@
0
         svn(:mkdir, path)
0
       end
0
 
0
- def copy_from(revision)
0
- revision.each do |relpath|
0
- target = path + relpath
0
- target.dirname.mkdir rescue nil
0
-
0
- logger.debug {"Copying #{relpath} to #{target}"}
0
- revision.copy_to(relpath, target)
0
- end
0
- end
0
-
0
       def recall(keys)
0
         hash = Hash.new
0
         keys.each do |k|
...
66
67
68
69
 
 
 
 
 
 
 
70
71
72
...
66
67
68
 
69
70
71
72
73
74
75
76
77
78
0
@@ -66,7 +66,13 @@
0
     # WorkingCopy will call Revision#copy_to with the full path to where the
0
     # file needs to be copied.
0
     def copy_from(revision)
0
- logger.debug {"Copying from #{revision} to #{path}"}
0
+ revision.each do |relpath|
0
+ target = path + relpath
0
+ target.dirname.mkdir rescue nil
0
+
0
+ logger.debug {"Copying #{relpath} to #{target}"}
0
+ revision.copy_to(relpath, target)
0
+ end
0
     end
0
 
0
     # Stores a Hash of values that can be retrieved later.

Comments

    No one has commented yet.