Commit 1f7863e3 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

fixed bug 9537 fetch_changesets broken

git-svn-id: http://redmine.rubyforge.org/svn/trunk@382 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e951209d
......@@ -45,14 +45,6 @@ class Repository < ActiveRecord::Base
end
end
def changesets_for_path(path="")
path = "/#{path}%"
path = url.gsub(/^#{root_url}/, '') + path if root_url && root_url != url
path.squeeze!("/")
changesets.find(:all, :include => :changes,
:conditions => ["#{Change.table_name}.path LIKE ?", path])
end
def fetch_changesets
scm_info = scm.info
if scm_info
......@@ -80,7 +72,7 @@ class Repository < ActiveRecord::Base
:from_revision => change[:from_revision])
end
end
end
end unless revisions.nil?
identifier_from = identifier_to + 1
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment