scm: mercurial: add "summary" method in adapter (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4845 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-16 04:41:10 +00:00
parent 2c4836cbae
commit ef3fbeeaa0
1 changed files with 7 additions and 0 deletions

View File

@ -93,6 +93,13 @@ module Redmine
return nil return nil
end end
def summary
@summary ||= hg 'rhsummary' do |io|
ActiveSupport::XmlMini.parse(io.read)['rhsummary']
end
end
private :summary
def entries(path=nil, identifier=nil) def entries(path=nil, identifier=nil)
path ||= '' path ||= ''
entries = Entries.new entries = Entries.new