Skip to content

Commit

Permalink
Merged r3550 from trunk.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3647 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Apr 11, 2010
1 parent b240da3 commit f92aa00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/redmine/scm/adapters/bazaar_adapter.rb
Expand Up @@ -56,14 +56,14 @@ def entries(path=nil, identifier=nil)
shellout(cmd) do |io|
prefix = "#{url}/#{path}".gsub('\\', '/')
logger.debug "PREFIX: #{prefix}"
re = %r{^V\s+#{Regexp.escape(prefix)}(\/?)([^\/]+)(\/?)\s+(\S+)$}
re = %r{^V\s+(#{Regexp.escape(prefix)})?(\/?)([^\/]+)(\/?)\s+(\S+)$}
io.each_line do |line|
next unless line =~ re
entries << Entry.new({:name => $2.strip,
:path => ((path.empty? ? "" : "#{path}/") + $2.strip),
:kind => ($3.blank? ? 'file' : 'dir'),
entries << Entry.new({:name => $3.strip,
:path => ((path.empty? ? "" : "#{path}/") + $3.strip),
:kind => ($4.blank? ? 'file' : 'dir'),
:size => nil,
:lastrev => Revision.new(:revision => $4.strip)
:lastrev => Revision.new(:revision => $5.strip)
})
end
end
Expand Down

0 comments on commit f92aa00

Please sign in to comment.