@@ -70,7 +70,7 module Redmine | |||||
70 | end |
|
70 | end | |
71 | begin |
|
71 | begin | |
72 | doc = ActiveSupport::XmlMini.parse(output) |
|
72 | doc = ActiveSupport::XmlMini.parse(output) | |
73 |
#root_url = doc.elements["info/entry/repository/root"].text |
|
73 | # root_url = doc.elements["info/entry/repository/root"].text | |
74 | info = Info.new({:root_url => doc['info']['entry']['repository']['root']['__content__'], |
|
74 | info = Info.new({:root_url => doc['info']['entry']['repository']['root']['__content__'], | |
75 | :lastrev => Revision.new({ |
|
75 | :lastrev => Revision.new({ | |
76 | :identifier => doc['info']['entry']['commit']['revision'], |
|
76 | :identifier => doc['info']['entry']['commit']['revision'], | |
@@ -263,7 +263,7 module Redmine | |||||
263 | end |
|
263 | end | |
264 |
|
264 | |||
265 | # Helper that iterates over the child elements of a xml node |
|
265 | # Helper that iterates over the child elements of a xml node | |
266 | # MiniXml returns a hash when a single child is found |
|
266 | # MiniXml returns a hash when a single child is found | |
267 | # or an array of hashes for multiple children |
|
267 | # or an array of hashes for multiple children | |
268 | def each_xml_element(node, name) |
|
268 | def each_xml_element(node, name) | |
269 | if node && node[name] |
|
269 | if node && node[name] |
General Comments 0
You need to be logged in to leave comments.
Login now