Feature #4455 » redmine-mercurial-01.patch
| 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 | ||
|---|---|---|
|
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!
|
||
| ... | ... | |
|
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!
|
||