scm: add feature of per project repository log encoding setting (#1735).
Subversion, Mercurial and Git supports UTF-8 log. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4982 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -19,10 +19,11 @@ require 'redmine/scm/adapters/bazaar_adapter'
|
||||
|
||||
class Repository::Bazaar < Repository
|
||||
attr_protected :root_url
|
||||
validates_presence_of :url
|
||||
validates_presence_of :url, :log_encoding
|
||||
|
||||
ATTRIBUTE_KEY_NAMES = {
|
||||
"url" => "Root directory",
|
||||
"log_encoding" => "Commit messages encoding",
|
||||
}
|
||||
def self.human_attribute_name(attribute_key_name)
|
||||
ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
|
||||
|
||||
Reference in New Issue
Block a user