redmine_version_revision_change_to_last_changed_rev.patch

Yuichi HARADA, 2018-09-13 04:06

Download (752 Bytes)

View differences:

trunk/lib/redmine/version.rb (working copy)
18 18
      if File.directory?(File.join(Rails.root, '.svn'))
19 19
        begin
20 20
          path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s)
21
          if `#{Redmine::Scm::Adapters::SubversionAdapter.client_command} info --xml #{path}` =~ /revision="(\d+)"/
21
          if `#{Redmine::Scm::Adapters::SubversionAdapter.client_command} info --xml #{path}` =~ /commit\s+revision="(\d+)"/
22 22
            return $1.to_i
23 23
          end
24 24
        rescue