public this repo is viewable by everyone
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
Repo Search:
Initial update subcommand implementation.
francois (author)
12 days ago
commit  b78d52bb13bc707c6af3eecd7a02a67d8f8ffd19
tree    75ee16aa7b6817958ab0264c021ced9987fcb53d
parent  29185f5c30acfc9ab36f661bd44d1429e0e8d336
...
161
162
163
164
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
166
167
...
161
162
163
 
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
0
@@ -161,7 +161,30 @@ Main {
0
       end
0
     end
0
   end
0
-
0
+
0
+ mode "update" do
0
+ mixin :standard_options
0
+ mixin :revision_or_commit
0
+
0
+ argument("directory") { optional }
0
+
0
+ def run
0
+ configure_logging!
0
+
0
+ if params["revision"].given? && params["commit"].given? then
0
+ raise ArgumentError, "Only one of --revision or --commit can be given. Received both."
0
+ end
0
+
0
+ cmd = Piston::Commands::Update.new(:lock => params["lock"].value,
0
+ :verbose => params["verbose"].value,
0
+ :quiet => params["quiet"].value,
0
+ :force => params["force"].value,
0
+ :dry_run => params["dry-run"].value)
0
+
0
+ cmd.run(params["director"].value, target_revision)
0
+ end
0
+ end
0
+
0
   option("version", "v")
0
 
0
   def run
...
1
2
 
...
1
2
3
0
@@ -1,2 +1,3 @@
0
 require "piston/commands/import"
0
 require "piston/commands/lock_unlock"
0
+require "piston/commands/update"

Comments

    No one has commented yet.