From f4ba1a708202a13577cce6efae1a5b53a4c4a615 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 26 May 2011 06:15:37 +0000 Subject: [PATCH] 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 --- lib/redmine/scm/adapters/bazaar_adapter.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index 46877ad43..39de200f3 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -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 -- 2.39.5