diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/scm/adapters/bazaar_adapter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index 72bb352b9..8de831d6c 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -104,13 +104,13 @@ module Redmine re = %r{^V\s+(#{Regexp.escape(prefix)})?(\/?)([^\/]+)(\/?)\s+(\S+)\r?$} io.each_line do |line| next unless line =~ re - name_locale = $3.strip + name_locale, slash, revision = $3.strip, $4, $5.strip name = scm_iconv('UTF-8', @path_encoding, name_locale) entries << Entry.new({:name => name, :path => ((path.empty? ? "" : "#{path}/") + name), - :kind => ($4.blank? ? 'file' : 'dir'), + :kind => (slash.blank? ? 'file' : 'dir'), :size => nil, - :lastrev => Revision.new(:revision => $5.strip) + :lastrev => Revision.new(:revision => revision) }) end end |