Fix requiring SCM classes in dev mode #828
Change require to require_dependency so SCM classes get loaded on each request in dev mode
This commit is contained in:
parent
fda1dfa96d
commit
cbcce70400
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/bazaar_adapter'
|
||||
require_dependency 'redmine/scm/adapters/bazaar_adapter'
|
||||
|
||||
class Repository::Bazaar < Repository
|
||||
attr_protected :root_url
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/cvs_adapter'
|
||||
require_dependency 'redmine/scm/adapters/cvs_adapter'
|
||||
require 'digest/sha1'
|
||||
|
||||
class Repository::Cvs < Repository
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/darcs_adapter'
|
||||
require_dependency 'redmine/scm/adapters/darcs_adapter'
|
||||
|
||||
class Repository::Darcs < Repository
|
||||
validates_presence_of :url, :log_encoding
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/filesystem_adapter'
|
||||
require_dependency 'redmine/scm/adapters/filesystem_adapter'
|
||||
|
||||
class Repository::Filesystem < Repository
|
||||
attr_protected :root_url
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/git_adapter'
|
||||
require_dependency 'redmine/scm/adapters/git_adapter'
|
||||
|
||||
class Repository::Git < Repository
|
||||
attr_protected :root_url
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/mercurial_adapter'
|
||||
require_dependency 'redmine/scm/adapters/mercurial_adapter'
|
||||
|
||||
class Repository::Mercurial < Repository
|
||||
# sort changesets by revision number
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/subversion_adapter'
|
||||
require_dependency 'redmine/scm/adapters/subversion_adapter'
|
||||
|
||||
class Repository::Subversion < Repository
|
||||
attr_protected :root_url
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/abstract_adapter'
|
||||
require_dependency 'redmine/scm/adapters/abstract_adapter'
|
||||
|
||||
module Redmine
|
||||
module Scm
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/abstract_adapter'
|
||||
require_dependency 'redmine/scm/adapters/abstract_adapter'
|
||||
|
||||
module Redmine
|
||||
module Scm
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/abstract_adapter'
|
||||
require_dependency 'redmine/scm/adapters/abstract_adapter'
|
||||
require 'rexml/document'
|
||||
|
||||
module Redmine
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/abstract_adapter'
|
||||
require_dependency 'redmine/scm/adapters/abstract_adapter'
|
||||
require 'find'
|
||||
|
||||
module Redmine
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/abstract_adapter'
|
||||
require_dependency 'redmine/scm/adapters/abstract_adapter'
|
||||
|
||||
module Redmine
|
||||
module Scm
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/abstract_adapter'
|
||||
require_dependency 'redmine/scm/adapters/abstract_adapter'
|
||||
require 'cgi'
|
||||
|
||||
module Redmine
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
require 'redmine/scm/adapters/abstract_adapter'
|
||||
require_dependency 'redmine/scm/adapters/abstract_adapter'
|
||||
require 'uri'
|
||||
|
||||
module Redmine
|
||||
|
|
Loading…
Reference in New Issue