public
Fork of francois/piston
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/collectiveidea/piston.git
Fixed missing update command in manifest and argument arity problem in 
cli.rb for lock / unlock
Nathan Sobo (author)
Fri May 09 21:39:03 -0700 2008
commit  043239d8e4da8ac6ee76709b6670a4a39b061858
tree    221f06bdc533c95c5b8987dfa89119efe3326bac
parent  e34929ceb852cbd3d6609d13cea7bf4b885defaa
...
13
14
15
 
16
17
18
...
13
14
15
16
17
18
19
0
@@ -13,6 +13,7 @@ lib/piston/commands.rb
0
 lib/piston/commands/base.rb
0
 lib/piston/commands/import.rb
0
 lib/piston/commands/lock_unlock.rb
0
+lib/piston/commands/update.rb
0
 lib/piston/git.rb
0
 lib/piston/git/client.rb
0
 lib/piston/git/commit.rb
...
122
123
124
125
126
 
 
 
127
128
129
130
131
 
132
133
134
...
149
150
151
152
 
 
153
154
155
156
157
 
158
159
160
...
122
123
124
 
 
125
126
127
128
129
130
131
 
132
133
134
135
...
150
151
152
 
153
154
155
156
157
158
 
159
160
161
162
0
@@ -122,13 +122,14 @@ Main {
0
     logger_level Logger::DEBUG
0
     def run
0
       configure_logging!
0
-
0
- cmd = Piston::Commands::LockUnlock.new(:wcdir => params["directory"].value,
0
+
0
+ wcdir = params["directory"].value
0
+ cmd = Piston::Commands::LockUnlock.new(:wcdir => wcdir,
0
                                              :verbose => params["verbose"].value,
0
                                              :quiet => params["quiet"].value,
0
                                              :force => params["force"].value)
0
       begin
0
- cmd.run(true)
0
+ cmd.run(wcdir, true)
0
         puts "#{params["directory"].value} locked"
0
       rescue Piston::WorkingCopy::NotWorkingCopy
0
         puts "The #{params["directory"].value} is not Pistonized"
0
@@ -149,12 +150,13 @@ Main {
0
     def run
0
       configure_logging!
0
 
0
- cmd = Piston::Commands::LockUnlock.new(:wcdir => params["directory"].value,
0
+ wcdir = params["directory"].value
0
+ cmd = Piston::Commands::LockUnlock.new(:wcdir => wcdir,
0
                                              :verbose => params["verbose"].value,
0
                                              :quiet => params["quiet"].value,
0
                                              :force => params["force"].value)
0
       begin
0
- cmd.run(false)
0
+ cmd.run(wcdir, false)
0
         puts "#{params["directory"].value} unlocked"
0
       rescue Piston::WorkingCopy::NotWorkingCopy
0
         puts "The #{params["directory"].value} is not Pistonized"

Comments

    No one has commented yet.