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
Moved #temp_dir_name from Import to Base.
francois (author)
Mon Jul 21 11:51:06 -0700 2008
commit  c4a09dbaa0c4af7027a01d3a393cb21120364b07
tree    6215ee684c119fe8c3236ec1be43fad32176ec31
parent  d76859a8697ed2e050857b3893db286b584c7ddc
...
39
40
41
 
 
 
 
42
43
44
...
39
40
41
42
43
44
45
46
47
48
0
@@ -39,6 +39,10 @@ module Piston
0
         wc.validate!
0
         wc
0
       end
0
+
0
+ def temp_dir_name(working_copy)
0
+ working_copy.path.parent + ".#{working_copy.path.basename}.tmp"
0
+ end
0
     end
0
   end
0
 end
...
5
6
7
8
9
10
11
12
13
14
15
 
16
17
18
...
53
54
55
56
 
57
58
59
...
5
6
7
 
 
 
 
8
9
10
 
11
12
13
14
...
49
50
51
 
52
53
54
55
0
@@ -5,14 +5,10 @@ module Piston
0
     class Import < Piston::Commands::Base
0
       attr_reader :options
0
 
0
- def temp_dir_name(working_copy)
0
- working_copy.path.parent + ".#{working_copy.path.basename}.tmp"
0
- end
0
-
0
       def repository_type
0
         options[:repository_type]
0
       end
0
-
0
+
0
       def select_repository(repository_url)
0
         if repository_type then
0
           logger.info {"Forced repository type to #{repository_type}"}
0
@@ -53,7 +49,7 @@ module Piston
0
 
0
           logger.debug {"Remembering values"}
0
           working_copy.remember({:repository_url => repository.url, :lock => options[:lock], :repository_class => repository.class.name},
0
- revision.remember_values)
0
+ revision.remember_values)
0
 
0
           logger.debug {"Finalizing working copy"}
0
           working_copy.finalize

Comments

    No one has commented yet.