redmine-mercurial-01.patch

Toshi MARUYAMA, 2010-01-19 23:29

Download (1.02 KB)

View differences:

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!