summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/bazaar_adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/scm/adapters/bazaar_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/bazaar_adapter.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb
index 39de200f3..97c1e322d 100644
--- a/lib/redmine/scm/adapters/bazaar_adapter.rb
+++ b/lib/redmine/scm/adapters/bazaar_adapter.rb
@@ -174,14 +174,15 @@ module Redmine
if identifier_from
identifier_from = identifier_from.to_i
end
- cmd = "#{self.class.sq_bin} diff -r#{identifier_to}..#{identifier_from} #{target(path)}"
diff = []
- shellout(cmd) do |io|
+ cmd_args = %w|diff|
+ cmd_args << "-r#{identifier_to}..#{identifier_from}"
+ cmd_args << bzr_target(path)
+ scm_cmd_no_raise(*cmd_args) do |io|
io.each_line do |line|
diff << line
end
end
- #return nil if $? && $?.exitstatus != 0
diff
end