diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-10 18:32:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-10 18:32:09 +0000 |
commit | 7c105ec9e93b73f5c11f2d5cc240e2b15344ec98 (patch) | |
tree | e3d80cdacc74861550583ed4445ff69b051655c8 /app/models/repository | |
parent | 9b60214b3a3e25691400cd3bbf11191429bc3c1c (diff) | |
download | redmine-7c105ec9e93b73f5c11f2d5cc240e2b15344ec98.tar.gz redmine-7c105ec9e93b73f5c11f2d5cc240e2b15344ec98.zip |
Adds a method to load changesets for repository entries.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9805 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r-- | app/models/repository/bazaar.rb | 2 | ||||
-rw-r--r-- | app/models/repository/cvs.rb | 1 | ||||
-rw-r--r-- | app/models/repository/darcs.rb | 1 | ||||
-rw-r--r-- | app/models/repository/filesystem.rb | 4 | ||||
-rw-r--r-- | app/models/repository/git.rb | 6 |
5 files changed, 7 insertions, 7 deletions
diff --git a/app/models/repository/bazaar.rb b/app/models/repository/bazaar.rb index 441b4b739..649bb4722 100644 --- a/app/models/repository/bazaar.rb +++ b/app/models/repository/bazaar.rb @@ -63,6 +63,8 @@ class Repository::Bazaar < Repository end end end + load_entries_changesets(entries) + entries end def fetch_changesets diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index 1ad7fb65d..ebfceb6ab 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -66,6 +66,7 @@ class Repository::Cvs < Repository end end end + load_entries_changesets(entries) entries end diff --git a/app/models/repository/darcs.rb b/app/models/repository/darcs.rb index 18eb3a2f7..995a65597 100644 --- a/app/models/repository/darcs.rb +++ b/app/models/repository/darcs.rb @@ -66,6 +66,7 @@ class Repository::Darcs < Repository end end end + load_entries_changesets(entries) entries end diff --git a/app/models/repository/filesystem.rb b/app/models/repository/filesystem.rb index c0b6ec44f..e93009045 100644 --- a/app/models/repository/filesystem.rb +++ b/app/models/repository/filesystem.rb @@ -44,10 +44,6 @@ class Repository::Filesystem < Repository false end - def entries(path=nil, identifier=nil) - scm.entries(path, identifier) - end - def fetch_changesets nil end diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 43c826562..a9a666c28 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -94,9 +94,9 @@ class Repository::Git < Repository end def entries(path=nil, identifier=nil) - scm.entries(path, - identifier, - options = {:report_last_commit => extra_report_last_commit}) + entries = scm.entries(path, identifier, :report_last_commit => extra_report_last_commit) + load_entries_changesets(entries) + entries end # With SCMs that have a sequential commit numbering, |