From eb1866036935161f0566293a9fc9c7f4a95004ff Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 2 Feb 2014 04:44:04 +0000 Subject: [PATCH] scm: mercurial: override entry and scm_entries (#14361) git-svn-id: http://svn.redmine.org/redmine/trunk@12759 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/mercurial.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index cafc74bd3..1a5fd4b1e 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -71,6 +71,15 @@ class Repository::Mercurial < Repository super(cs, cs_to, ' ') end + def entry(path=nil, identifier=nil) + scm.entry(path, identifier) + end + + def scm_entries(path=nil, identifier=nil) + scm.entries(path, identifier) + end + protected :scm_entries + # Finds and returns a revision with a number or the beginning of a hash def find_changeset_by_name(name) return nil if name.blank? -- 2.39.5