@@ -219,6 +219,17 module Redmine | |||||
219 | self |
|
219 | self | |
220 | end |
|
220 | end | |
221 |
|
221 | |||
|
222 | # Returns list of nodes in the specified branch | |||
|
223 | def nodes_in_branch(branch, path=nil, identifier_from=nil, identifier_to=nil, options={}) | |||
|
224 | p1 = scm_iconv(@path_encoding, 'UTF-8', path) | |||
|
225 | hg_args = ['rhlog', '--template', '{node|short}\n', '--rhbranch', CGI.escape(branch)] | |||
|
226 | hg_args << '--from' << CGI.escape(hgrev(identifier_from)) | |||
|
227 | hg_args << '--to' << CGI.escape(hgrev(identifier_to)) | |||
|
228 | hg_args << '--limit' << options[:limit] if options[:limit] | |||
|
229 | hg_args << CGI.escape(hgtarget(p1)) unless path.blank? | |||
|
230 | hg(*hg_args) { |io| io.readlines.map { |e| e.chomp } } | |||
|
231 | end | |||
|
232 | ||||
222 | def diff(path, identifier_from, identifier_to=nil) |
|
233 | def diff(path, identifier_from, identifier_to=nil) | |
223 | hg_args = %w|rhdiff| |
|
234 | hg_args = %w|rhdiff| | |
224 | if identifier_to |
|
235 | if identifier_to |
General Comments 0
You need to be logged in to leave comments.
Login now