@@ -188,8 +188,13 class Repository < ActiveRecord::Base | |||||
188 | scm.entry(path, identifier) |
|
188 | scm.entry(path, identifier) | |
189 | end |
|
189 | end | |
190 |
|
190 | |||
|
191 | def scm_entries(path=nil, identifier=nil) | |||
|
192 | scm.entries(path, identifier) | |||
|
193 | end | |||
|
194 | protected :scm_entries | |||
|
195 | ||||
191 | def entries(path=nil, identifier=nil) |
|
196 | def entries(path=nil, identifier=nil) | |
192 |
entries = scm |
|
197 | entries = scm_entries(path, identifier) | |
193 | load_entries_changesets(entries) |
|
198 | load_entries_changesets(entries) | |
194 | entries |
|
199 | entries | |
195 | end |
|
200 | end |
@@ -57,7 +57,7 class Repository::Bazaar < Repository | |||||
57 | scm.diff(path, rev, rev_to) |
|
57 | scm.diff(path, rev, rev_to) | |
58 | end |
|
58 | end | |
59 |
|
59 | |||
60 | def entries(path=nil, identifier=nil) |
|
60 | def scm_entries(path=nil, identifier=nil) | |
61 | scm.bzr_path_encodig = log_encoding |
|
61 | scm.bzr_path_encodig = log_encoding | |
62 | entries = scm.entries(path, identifier) |
|
62 | entries = scm.entries(path, identifier) | |
63 | if entries |
|
63 | if entries | |
@@ -80,9 +80,9 class Repository::Bazaar < Repository | |||||
80 | end |
|
80 | end | |
81 | end |
|
81 | end | |
82 | end |
|
82 | end | |
83 | load_entries_changesets(entries) |
|
|||
84 | entries |
|
83 | entries | |
85 | end |
|
84 | end | |
|
85 | protected :scm_entries | |||
86 |
|
86 | |||
87 | def fetch_changesets |
|
87 | def fetch_changesets | |
88 | scm.bzr_path_encodig = log_encoding |
|
88 | scm.bzr_path_encodig = log_encoding |
@@ -47,7 +47,7 class Repository::Cvs < Repository | |||||
47 | scm.entry(path, rev.nil? ? nil : rev.committed_on) |
|
47 | scm.entry(path, rev.nil? ? nil : rev.committed_on) | |
48 | end |
|
48 | end | |
49 |
|
49 | |||
50 | def entries(path=nil, identifier=nil) |
|
50 | def scm_entries(path=nil, identifier=nil) | |
51 | rev = nil |
|
51 | rev = nil | |
52 | if ! identifier.nil? |
|
52 | if ! identifier.nil? | |
53 | rev = changesets.find_by_revision(identifier) |
|
53 | rev = changesets.find_by_revision(identifier) | |
@@ -69,9 +69,9 class Repository::Cvs < Repository | |||||
69 | end |
|
69 | end | |
70 | end |
|
70 | end | |
71 | end |
|
71 | end | |
72 | load_entries_changesets(entries) |
|
|||
73 | entries |
|
72 | entries | |
74 | end |
|
73 | end | |
|
74 | protected :scm_entries | |||
75 |
|
75 | |||
76 | def cat(path, identifier=nil) |
|
76 | def cat(path, identifier=nil) | |
77 | rev = nil |
|
77 | rev = nil |
@@ -45,7 +45,7 class Repository::Darcs < Repository | |||||
45 | scm.entry(path, patch.nil? ? nil : patch.scmid) |
|
45 | scm.entry(path, patch.nil? ? nil : patch.scmid) | |
46 | end |
|
46 | end | |
47 |
|
47 | |||
48 | def entries(path=nil, identifier=nil) |
|
48 | def scm_entries(path=nil, identifier=nil) | |
49 | patch = nil |
|
49 | patch = nil | |
50 | if ! identifier.nil? |
|
50 | if ! identifier.nil? | |
51 | patch = changesets.find_by_revision(identifier) |
|
51 | patch = changesets.find_by_revision(identifier) | |
@@ -66,9 +66,9 class Repository::Darcs < Repository | |||||
66 | end |
|
66 | end | |
67 | end |
|
67 | end | |
68 | end |
|
68 | end | |
69 | load_entries_changesets(entries) |
|
|||
70 | entries |
|
69 | entries | |
71 | end |
|
70 | end | |
|
71 | protected :scm_entries | |||
72 |
|
72 | |||
73 | def cat(path, identifier=nil) |
|
73 | def cat(path, identifier=nil) | |
74 | patch = identifier.nil? ? nil : changesets.find_by_revision(identifier.to_s) |
|
74 | patch = identifier.nil? ? nil : changesets.find_by_revision(identifier.to_s) |
@@ -93,11 +93,10 class Repository::Git < Repository | |||||
93 | end |
|
93 | end | |
94 | end |
|
94 | end | |
95 |
|
95 | |||
96 | def entries(path=nil, identifier=nil) |
|
96 | def scm_entries(path=nil, identifier=nil) | |
97 |
|
|
97 | scm.entries(path, identifier, :report_last_commit => extra_report_last_commit) | |
98 | load_entries_changesets(entries) |
|
|||
99 | entries |
|
|||
100 | end |
|
98 | end | |
|
99 | protected :scm_entries | |||
101 |
|
100 | |||
102 | # With SCMs that have a sequential commit numbering, |
|
101 | # With SCMs that have a sequential commit numbering, | |
103 | # such as Subversion and Mercurial, |
|
102 | # such as Subversion and Mercurial, |
General Comments 0
You need to be logged in to leave comments.
Login now