diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-13 15:03:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-13 15:03:05 +0000 |
commit | d48a7e148e412e4f43aba62800920c6c419092fe (patch) | |
tree | 201a92b470d3f3cb164ce5c1f5a406e59a689915 /lib/redmine/scm/adapters/mercurial_adapter.rb | |
parent | e4103aab16d7ce1088919c9d6a08d4387fec82c4 (diff) | |
download | redmine-d48a7e148e412e4f43aba62800920c6c419092fe.tar.gz redmine-d48a7e148e412e4f43aba62800920c6c419092fe.zip |
scm: mercurial: remove unused parameters from "nodes_in_branch()" method in adapter (#7246, #4455).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5108 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/mercurial_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/mercurial_adapter.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index df021ea1c..d5266e9bf 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -220,13 +220,11 @@ module Redmine 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) + def nodes_in_branch(branch, options={}) 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 << '--from' << CGI.escape(branch) + hg_args << '--to' << '0' 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 |