From 47475acdafe0a8d395896a8f8b1bf0812593b238 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 8 Nov 2008 15:28:00 +0000 Subject: [PATCH] Fixed Bazaar shared repository browsing (#2101, patch #1685 by Dmitry Shaposhnik). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1994 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/bazaar_adapter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index ff69e3e6b..39afb0565 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -50,7 +50,8 @@ module Redmine path ||= '' entries = Entries.new cmd = "#{BZR_BIN} ls -v --show-ids" - cmd << " -r#{identifier.to_i}" if identifier && identifier.to_i > 0 + identifier = -1 unless identifier && identifier.to_i > 0 + cmd << " -r#{identifier.to_i}" cmd << " #{target(path)}" shellout(cmd) do |io| prefix = "#{url}/#{path}".gsub('\\', '/') -- 2.39.5