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 --lock is passed to import, make sure to lock the working at the same 
time.
francois (author)
Fri May 09 08:19:18 -0700 2008
commit  29185f5c30acfc9ab36f661bd44d1429e0e8d336
tree    58422820ac65d01791da3f8b2dbab3385433db4d
parent  3fa9e41332db8efbbe44942aec704f024ee13e7f
...
80
81
82
83
84
 
85
86
87
...
101
102
103
 
 
 
 
 
 
 
104
105
106
...
80
81
82
 
 
83
84
85
86
...
100
101
102
103
104
105
106
107
108
109
110
111
112
0
@@ -80,8 +80,7 @@
0
         raise ArgumentError, "Only one of --revision or --commit can be given. Received both."
0
       end
0
 
0
- cmd = Piston::Commands::Import.new(:lock => params["lock"].value,
0
- :verbose => params["verbose"].value,
0
+ cmd = Piston::Commands::Import.new(:verbose => params["verbose"].value,
0
                                          :quiet => params["quiet"].value,
0
                                          :force => params["force"].value,
0
                                          :dry_run => params["dry-run"].value,
0
@@ -101,6 +100,13 @@
0
         end
0
         exit_failure!
0
       end
0
+
0
+ # Lock the working copy, if the user asked for it
0
+ cmd = Piston::Commands::LockUnlock.new(:verbose => params["verbose"].value,
0
+ :quiet => params["quiet"].value,
0
+ :force => params["force"].value,
0
+ :dry_run => params["dry-run"].value)
0
+ cmd.run(params["directory"].value, true) if params["lock"].value
0
     end
0
   end
0
   

Comments

    No one has commented yet.