comparison .svn/pristine/70/70dfef569a65ef5db9a25ad36d19a3ee38afe71d.svn-base @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 class CopyRepositoriesLogEncoding < ActiveRecord::Migration
2 def self.up
3 encoding = Setting.commit_logs_encoding.to_s.strip
4 encoding = encoding.blank? ? 'UTF-8' : encoding
5 Repository.find(:all).each do |repo|
6 scm = repo.scm_name
7 case scm
8 when 'Subversion', 'Mercurial', 'Git', 'Filesystem'
9 repo.update_attribute(:log_encoding, nil)
10 else
11 repo.update_attribute(:log_encoding, encoding)
12 end
13 end
14 end
15
16 def self.down
17 end
18 end