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:
Refactored the working copy guessing into Piston::Commands::Base#guess_wc.
francois (author)
Tue May 13 15:44:05 -0700 2008
commit  a2ef04d7498a9f3dd83cc4ee22b14eeb218f9881
tree    374b0c68d01dd9639cc30b3429ae6b59a35c62a7
parent  10863f19e2e48c704983bb1618aacd0f29ebae9c
...
29
30
31
 
 
 
 
32
33
34
...
29
30
31
32
33
34
35
36
37
38
0
@@ -29,6 +29,10 @@
0
       def logger
0
         self.class.logger
0
       end
0
+
0
+ def guess_wc(wcdir)
0
+ working_copy = Piston::WorkingCopy.guess(wcdir)
0
+ end
0
     end
0
   end
0
 end
...
32
33
34
35
 
36
37
38
...
32
33
34
 
35
36
37
38
0
@@ -32,7 +32,7 @@
0
         wcdir = wcdir.nil? ? repository.basename : wcdir
0
         logger.info {"Guessing the working copy type"}
0
         logger.debug {"repository_url: #{repository_url.inspect}, target_revision: #{target_revision.inspect}, wcdir: #{wcdir.inspect}"}
0
- working_copy = Piston::WorkingCopy.guess(wcdir)
0
+ working_copy = guess_wc(wcdir)
0
 
0
         tmpdir = temp_dir_name(working_copy)
0
 
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@
0
       attr_reader :options
0
 
0
       def run(wcdir)
0
- working_copy = Piston::WorkingCopy.guess(wcdir)
0
+ working_copy = guess_wc(wcdir)
0
         raise Piston::WorkingCopy::NotWorkingCopy if !working_copy.exist? || !working_copy.pistonized?
0
         working_copy.info.to_yaml
0
       end
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@
0
       attr_reader :options
0
 
0
       def run(wcdir, lock)
0
- working_copy = Piston::WorkingCopy.guess(wcdir)
0
+ working_copy = guess_wc(wcdir)
0
         raise Piston::WorkingCopy::NotWorkingCopy if !working_copy.exist? || !working_copy.pistonized?
0
 
0
         values = working_copy.recall
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@
0
       # +wcdir+ is the working copy we're going to change.
0
       # +to+ is the new target revision we want to be at after update returns.
0
       def run(wcdir, to)
0
- working_copy = Piston::WorkingCopy.guess(wcdir)
0
+ working_copy = guess_wc(wcdir)
0
 
0
         logger.debug {"Recalling previously saved values"}
0
         values = working_copy.recall

Comments

    No one has commented yet.