diff -r ba240ac2d19b -r ed12b4ea60bc lib/redmine/scm/adapters/mercurial_adapter.rb --- a/lib/redmine/scm/adapters/mercurial_adapter.rb Mon Jan 18 19:51:19 2010 +0900 +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb Wed Jan 20 07:25:35 2010 +0900 @@ -83,7 +83,8 @@ cmd = "#{HG_BIN} -R #{target('')} branches" shellout(cmd) do |io| io.each_line do |line| - branches << line.chomp.match('^([^\s]+).*$')[1] + # branches << line.chomp.match('^([^\s]+).*$')[1] + branches << line.chomp.match('^([^:]+[^\s]+)[\s]+[\d]+:.*$')[1] end end branches.sort! @@ -98,7 +99,8 @@ cmd = "#{HG_BIN} -R #{target('')} tags" shellout(cmd) do |io| io.each_line do |line| - tags << line.chomp.match('^([\w]+).*$')[1] + # tags << line.chomp.match('^([\w]+).*$')[1] + tags << line.chomp.match('^([^:]+[^\s]+)[\s]+[\d]+:.*$')[1] end end tags.sort!