@@ -140,7 +140,7 def rhmanifest(ui, repo, path='', **opts): | |||||
140 | ui.write('<rhmanifest>\n') |
|
140 | ui.write('<rhmanifest>\n') | |
141 | ui.write('<repository root="%s">\n' % _u(repo.root)) |
|
141 | ui.write('<repository root="%s">\n' % _u(repo.root)) | |
142 | try: |
|
142 | try: | |
143 | _manifest(ui, repo, urllib.unquote_plus(path), opts.get('rev')) |
|
143 | _manifest(ui, repo, urllib.unquote_plus(path), urllib.unquote_plus(opts.get('rev'))) | |
144 | finally: |
|
144 | finally: | |
145 | ui.write('</repository>\n') |
|
145 | ui.write('</repository>\n') | |
146 | ui.write('</rhmanifest>\n') |
|
146 | ui.write('</rhmanifest>\n') |
@@ -130,7 +130,7 module Redmine | |||||
130 |
|
130 | |||
131 | def entries(path=nil, identifier=nil) |
|
131 | def entries(path=nil, identifier=nil) | |
132 | p1 = scm_iconv(@path_encoding, 'UTF-8', path) |
|
132 | p1 = scm_iconv(@path_encoding, 'UTF-8', path) | |
133 | manifest = hg('rhmanifest', '-r', hgrev(identifier), |
|
133 | manifest = hg('rhmanifest', '-r', CGI.escape(hgrev(identifier)), | |
134 | CGI.escape(without_leading_slash(p1.to_s))) do |io| |
|
134 | CGI.escape(without_leading_slash(p1.to_s))) do |io| | |
135 | begin |
|
135 | begin | |
136 | ActiveSupport::XmlMini.parse(io.read)['rhmanifest']['repository']['manifest'] |
|
136 | ActiveSupport::XmlMini.parse(io.read)['rhmanifest']['repository']['manifest'] |
General Comments 0
You need to be logged in to leave comments.
Login now