mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
SCM:
* Fixes file log for non-Git repositories (Repository#latest_changesets ignores path argument) * No longer used Repository#changesets_for_path method removed git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2844 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -37,16 +37,6 @@ class Repository::Git < Repository
|
||||
scm.tags
|
||||
end
|
||||
|
||||
def changesets_for_path(path, options={})
|
||||
Change.find(
|
||||
:all,
|
||||
:include => {:changeset => :user},
|
||||
:conditions => ["repository_id = ? AND path = ?", id, path],
|
||||
:order => "committed_on DESC, #{Changeset.table_name}.revision DESC",
|
||||
:limit => options[:limit]
|
||||
).collect(&:changeset)
|
||||
end
|
||||
|
||||
# With SCM's that have a sequential commit numbering, redmine is able to be
|
||||
# clever and only fetch changesets going forward from the most recent one
|
||||
# it knows about. However, with git, you never know if people have merged
|
||||
|
||||
Reference in New Issue
Block a user