Project

General

Profile

Feature #4455 » redmine-mercurial-01.patch

Toshi MARUYAMA, 2010-01-19 23:29

View differences:

lib/redmine/scm/adapters/mercurial_adapter.rb Mon Jan 18 19:51:19 2010 +0900 → lib/redmine/scm/adapters/mercurial_adapter.rb Wed Jan 20 07:25:35 2010 +0900
83 83
          cmd = "#{HG_BIN} -R #{target('')} branches"
84 84
          shellout(cmd) do |io|
85 85
            io.each_line do |line|
86
              branches << line.chomp.match('^([^\s]+).*$')[1]
86
              # branches << line.chomp.match('^([^\s]+).*$')[1]
87
              branches << line.chomp.match('^([^:]+[^\s]+)[\s]+[\d]+:.*$')[1]
87 88
            end
88 89
          end
89 90
          branches.sort!
......
98 99
          cmd = "#{HG_BIN} -R #{target('')} tags"
99 100
          shellout(cmd) do |io|
100 101
            io.each_line do |line|
101
              tags << line.chomp.match('^([\w]+).*$')[1]
102
              # tags << line.chomp.match('^([\w]+).*$')[1]
103
              tags << line.chomp.match('^([^:]+[^\s]+)[\s]+[\d]+:.*$')[1]
102 104
            end
103 105
          end
104 106
          tags.sort!
(2-2/24)