@@ -45,14 +45,6 class Repository < ActiveRecord::Base | |||
|
45 | 45 | end |
|
46 | 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 | 48 | def fetch_changesets |
|
57 | 49 | scm_info = scm.info |
|
58 | 50 | if scm_info |
@@ -80,7 +72,7 class Repository < ActiveRecord::Base | |||
|
80 | 72 | :from_revision => change[:from_revision]) |
|
81 | 73 | end |
|
82 | 74 | end |
|
83 | end | |
|
75 | end unless revisions.nil? | |
|
84 | 76 | identifier_from = identifier_to + 1 |
|
85 | 77 | end |
|
86 | 78 | end |
General Comments 0
You need to be logged in to leave comments.
Login now