##// END OF EJS Templates
Merged r14136 from trunk to 3.0-stable....
Toshi MARUYAMA -
r13763:15067de1afd7
parent child
Show More
@@ -69,16 +69,6 class Changeset < ActiveRecord::Base
69 end
69 end
70 end
70 end
71
71
72 def committer=(arg)
73 write_attribute :committer,
74 self.class.to_utf8(arg, repository.try(:repo_log_encoding))
75 end
76
77 def comments=(arg)
78 write_attribute :comments,
79 self.class.normalize_comments(arg, repository.try(:repo_log_encoding))
80 end
81
82 def committed_on=(date)
72 def committed_on=(date)
83 self.commit_date = date
73 self.commit_date = date
84 super
74 super
@@ -102,7 +92,9 class Changeset < ActiveRecord::Base
102 end
92 end
103
93
104 def before_create_cs
94 def before_create_cs
105 self.comments ||= ''
95 self.committer = self.class.to_utf8(self.committer, repository.repo_log_encoding)
96 self.comments = self.class.normalize_comments(
97 self.comments, repository.repo_log_encoding)
106 self.user = repository.find_committer_user(self.committer)
98 self.user = repository.find_committer_user(self.committer)
107 end
99 end
108
100
General Comments 0
You need to be logged in to leave comments. Login now