@@ -45,14 +45,6 class Repository < ActiveRecord::Base | |||||
45 | end |
|
45 | end | |
46 | end |
|
46 | end | |
47 |
|
47 | |||
48 | def changesets_for_path(path="") |
|
|||
49 | path = "/#{path}%" |
|
|||
50 | path = url.gsub(/^#{root_url}/, '') + path if root_url && root_url != url |
|
|||
51 | path.squeeze!("/") |
|
|||
52 | changesets.find(:all, :include => :changes, |
|
|||
53 | :conditions => ["#{Change.table_name}.path LIKE ?", path]) |
|
|||
54 | end |
|
|||
55 |
|
||||
56 | def fetch_changesets |
|
48 | def fetch_changesets | |
57 | scm_info = scm.info |
|
49 | scm_info = scm.info | |
58 | if scm_info |
|
50 | if scm_info | |
@@ -80,7 +72,7 class Repository < ActiveRecord::Base | |||||
80 | :from_revision => change[:from_revision]) |
|
72 | :from_revision => change[:from_revision]) | |
81 | end |
|
73 | end | |
82 | end |
|
74 | end | |
83 | end |
|
75 | end unless revisions.nil? | |
84 | identifier_from = identifier_to + 1 |
|
76 | identifier_from = identifier_to + 1 | |
85 | end |
|
77 | end | |
86 | end |
|
78 | end |
General Comments 0
You need to be logged in to leave comments.
Login now