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
This commit is contained in:
Jean-Philippe Lang 2008-11-08 15:28:00 +00:00
parent 9ae6e60c26
commit 47475acdaf
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ module Redmine
path ||= '' path ||= ''
entries = Entries.new entries = Entries.new
cmd = "#{BZR_BIN} ls -v --show-ids" 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)}" cmd << " #{target(path)}"
shellout(cmd) do |io| shellout(cmd) do |io|
prefix = "#{url}/#{path}".gsub('\\', '/') prefix = "#{url}/#{path}".gsub('\\', '/')