# HG changeset patch # User Chris Cannam # Date 1501590633 -3600 # Node ID bc47b68a9487a677b86a90438fbbf6cf282315cc # Parent 3ad53f43483d65c8c6303140ded43e85ac088359 Avoid spurious svn invocation on startup diff -r 3ad53f43483d -r bc47b68a9487 lib/redmine/version.rb --- a/lib/redmine/version.rb Mon Oct 10 12:56:28 2016 +0100 +++ b/lib/redmine/version.rb Tue Aug 01 13:30:33 2017 +0100 @@ -14,17 +14,18 @@ # Retrieves the revision from the working copy def self.revision - if File.directory?(File.join(Rails.root, '.svn')) - begin - path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s) - if `svn info --xml #{path}` =~ /revision="(\d+)"/ - return $1.to_i - end - rescue + return 0 + # if File.directory?(File.join(Rails.root, '.svn')) + # begin + # path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s) + # if `svn info --xml #{path}` =~ /revision="(\d+)"/ + # return $1.to_i + # end + # rescue # Could not find the current revision - end - end - nil + # end + # end + # nil end REVISION = self.revision