scm: bazaar: add "scm_cmd_no_raise" method for "bzr diff".

"bzr diff" normal exit status is not 0 in Bazaar 2.0.5.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5920 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-26 06:15:37 +00:00
parent 4be9734824
commit f4ba1a7082
1 changed files with 8 additions and 0 deletions

View File

@ -281,6 +281,14 @@ module Redmine
end
private :scm_cmd
def scm_cmd_no_raise(*args, &block)
full_args = [BZR_BIN]
full_args += args
ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
ret
end
private :scm_cmd_no_raise
def bzr_target(path)
target(path, false)
end