fixed bug 9537 fetch_changesets broken

git-svn-id: http://redmine.rubyforge.org/svn/trunk@382 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-03-25 22:33:40 +00:00
parent e951209d68
commit 1f7863e323
1 changed files with 1 additions and 9 deletions

View File

@ -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