@@ -267,6 +267,17 module Redmine | |||
|
267 | 267 | end |
|
268 | 268 | @aro |
|
269 | 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 | 281 | end |
|
271 | 282 | end |
|
272 | 283 | end |
General Comments 0
You need to be logged in to leave comments.
Login now