For latest changesets supporting named branch. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5102 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cc60e59e70
commit
e17caceb4a
|
@ -219,6 +219,17 @@ module Redmine
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns list of nodes in the specified branch
|
||||||
|
def nodes_in_branch(branch, path=nil, identifier_from=nil, identifier_to=nil, options={})
|
||||||
|
p1 = scm_iconv(@path_encoding, 'UTF-8', path)
|
||||||
|
hg_args = ['rhlog', '--template', '{node|short}\n', '--rhbranch', CGI.escape(branch)]
|
||||||
|
hg_args << '--from' << CGI.escape(hgrev(identifier_from))
|
||||||
|
hg_args << '--to' << CGI.escape(hgrev(identifier_to))
|
||||||
|
hg_args << '--limit' << options[:limit] if options[:limit]
|
||||||
|
hg_args << CGI.escape(hgtarget(p1)) unless path.blank?
|
||||||
|
hg(*hg_args) { |io| io.readlines.map { |e| e.chomp } }
|
||||||
|
end
|
||||||
|
|
||||||
def diff(path, identifier_from, identifier_to=nil)
|
def diff(path, identifier_from, identifier_to=nil)
|
||||||
hg_args = %w|rhdiff|
|
hg_args = %w|rhdiff|
|
||||||
if identifier_to
|
if identifier_to
|
||||||
|
|
Loading…
Reference in New Issue