Skip to content

Commit 8b49aee

Browse files
committed
add empty line after guard clause to app/models/repository/mercurial.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20043 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 77fceb7 commit 8b49aee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/models/repository/mercurial.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@ def modify_entry_lastrev_identifier(entry)
8282
def entry(path=nil, identifier=nil)
8383
entry = scm.entry(path, identifier)
8484
return nil if entry.nil?
85+
8586
modify_entry_lastrev_identifier(entry)
8687
entry
8788
end
8889

8990
def scm_entries(path=nil, identifier=nil)
9091
entries = scm.entries(path, identifier)
9192
return nil if entries.nil?
93+
9294
entries.each {|entry| modify_entry_lastrev_identifier(entry)}
9395
entries
9496
end
@@ -97,13 +99,15 @@ def scm_entries(path=nil, identifier=nil)
9799
# Finds and returns a revision with a number or the beginning of a hash
98100
def find_changeset_by_name(name)
99101
return nil if name.blank?
102+
100103
s = name.to_s
101104
if /[^\d]/.match?(s) || s.size > 8
102105
cs = changesets.where(:scmid => s).first
103106
else
104107
cs = changesets.find_by(:revision => s)
105108
end
106109
return cs if cs
110+
107111
changesets.where('scmid LIKE ?', "#{s}%").first
108112
end
109113

@@ -126,6 +130,7 @@ def latest_changesets(path, rev, limit=10)
126130

127131
def is_short_id_in_db?
128132
return @is_short_id_in_db unless @is_short_id_in_db.nil?
133+
129134
cs = changesets.first
130135
@is_short_id_in_db = (!cs.nil? && cs.scmid.length != 40)
131136
end
@@ -179,6 +184,7 @@ def latest_changesets_cond(path, rev, limit)
179184

180185
def fetch_changesets
181186
return if scm.info.nil?
187+
182188
scm_rev = scm.info.lastrev.revision.to_i
183189
db_rev = latest_changeset ? latest_changeset.revision.to_i : -1
184190
return unless db_rev < scm_rev # already up-to-date

0 commit comments

Comments
 (0)