diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 04:44:04 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 04:44:04 +0000 |
commit | eb1866036935161f0566293a9fc9c7f4a95004ff (patch) | |
tree | 57cedbbd882b460048e3ed7094c418d04f8e20e9 /app/models/repository | |
parent | 07d7b47ddcfa4dfcbf187d642dfafc3c0c820335 (diff) | |
download | redmine-eb1866036935161f0566293a9fc9c7f4a95004ff.tar.gz redmine-eb1866036935161f0566293a9fc9c7f4a95004ff.zip |
scm: mercurial: override entry and scm_entries (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12759 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r-- | app/models/repository/mercurial.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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? |