Mercurial > hg > soundsoftware-site
comparison app/models/wiki_page.rb @ 507:0c939c159af4 redmine-1.2
Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:32:19 +0100 |
parents | cbce1fd3b1b7 |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
441:cbce1fd3b1b7 | 507:0c939c159af4 |
---|---|
210 positions.compact! | 210 positions.compact! |
211 # Stop if every line is annotated | 211 # Stop if every line is annotated |
212 break unless @lines.detect { |line| line[0].nil? } | 212 break unless @lines.detect { |line| line[0].nil? } |
213 current = current.previous | 213 current = current.previous |
214 end | 214 end |
215 @lines.each { |line| line[0] ||= current.version } | 215 @lines.each { |line| |
216 line[0] ||= current.version | |
217 # if the last known version is > 1 (eg. history was cleared), we don't know the author | |
218 line[1] ||= current.author if current.version == 1 | |
219 } | |
216 end | 220 end |
217 end | 221 end |