]> source.dussan.org Git - redmine.git/commitdiff
Fixed Bazaar shared repository browsing (#2101, patch #1685 by Dmitry Shaposhnik).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 8 Nov 2008 15:28:00 +0000 (15:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 8 Nov 2008 15:28:00 +0000 (15:28 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1994 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/bazaar_adapter.rb

index ff69e3e6be08a5378aa1f376c7a75b64e3cee3c3..39afb0565f9d1cc0a91b559bc19bf56613c81eb3 100644 (file)
@@ -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('\\', '/')