Mercurial > hg > soundsoftware-site
diff app/models/repository/filesystem.rb @ 1338:25603efa57b5
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 13:14:14 +0100 |
parents | 51d7f3e06556 |
children | 4f746d8966dd |
line wrap: on
line diff
--- a/app/models/repository/filesystem.rb Wed Jan 23 13:11:25 2013 +0000 +++ b/app/models/repository/filesystem.rb Thu Jun 20 13:14:14 2013 +0100 @@ -1,5 +1,5 @@ # Redmine - project management software -# Copyright (C) 2006-2011 Jean-Philippe Lang +# Copyright (C) 2006-2012 Jean-Philippe Lang # # FileSystem adapter # File written by Paul Rivier, at Demotera. @@ -18,18 +18,18 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -require 'redmine/scm/adapters/filesystem_adapter' +require_dependency 'redmine/scm/adapters/filesystem_adapter' class Repository::Filesystem < Repository attr_protected :root_url validates_presence_of :url - def self.human_attribute_name(attribute_key_name) - attr_name = attribute_key_name + def self.human_attribute_name(attribute_key_name, *args) + attr_name = attribute_key_name.to_s if attr_name == "url" attr_name = "root_directory" end - super(attr_name) + super(attr_name, *args) end def self.scm_adapter_class @@ -44,10 +44,6 @@ false end - def entries(path=nil, identifier=nil) - scm.entries(path, identifier) - end - def fetch_changesets nil end