@@ -267,6 +267,17 module Redmine | |||||
267 | end |
|
267 | end | |
268 | @aro |
|
268 | @aro | |
269 | end |
|
269 | end | |
|
270 | ||||
|
271 | def scm_cmd(*args, &block) | |||
|
272 | full_args = [BZR_BIN] | |||
|
273 | full_args += args | |||
|
274 | ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block) | |||
|
275 | if $? && $?.exitstatus != 0 | |||
|
276 | raise ScmCommandAborted, "bzr exited with non-zero status: #{$?.exitstatus}" | |||
|
277 | end | |||
|
278 | ret | |||
|
279 | end | |||
|
280 | private :scm_cmd | |||
270 | end |
|
281 | end | |
271 | end |
|
282 | end | |
272 | end |
|
283 | end |
General Comments 0
You need to be logged in to leave comments.
Login now