##// END OF EJS Templates
Updates for 3.2.4....
Jean-Philippe Lang -
r15518:f5bcd05c448a
parent child
Show More

The requested changes are too big and content was truncated. Show full diff

1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
@@ -1,37 +1,37
1 require 'rexml/document'
1 require 'rexml/document'
2
2
3 module Redmine
3 module Redmine
4 module VERSION #:nodoc:
4 module VERSION #:nodoc:
5 MAJOR = 3
5 MAJOR = 3
6 MINOR = 2
6 MINOR = 2
7 TINY = 3
7 TINY = 4
8
8
9 # Branch values:
9 # Branch values:
10 # * official release: nil
10 # * official release: nil
11 # * stable branch: stable
11 # * stable branch: stable
12 # * trunk: devel
12 # * trunk: devel
13 BRANCH = 'stable'
13 BRANCH = 'stable'
14
14
15 # Retrieves the revision from the working copy
15 # Retrieves the revision from the working copy
16 def self.revision
16 def self.revision
17 if File.directory?(File.join(Rails.root, '.svn'))
17 if File.directory?(File.join(Rails.root, '.svn'))
18 begin
18 begin
19 path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s)
19 path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s)
20 if `svn info --xml #{path}` =~ /revision="(\d+)"/
20 if `svn info --xml #{path}` =~ /revision="(\d+)"/
21 return $1.to_i
21 return $1.to_i
22 end
22 end
23 rescue
23 rescue
24 # Could not find the current revision
24 # Could not find the current revision
25 end
25 end
26 end
26 end
27 nil
27 nil
28 end
28 end
29
29
30 REVISION = self.revision
30 REVISION = self.revision
31 ARRAY = [MAJOR, MINOR, TINY, BRANCH, REVISION].compact
31 ARRAY = [MAJOR, MINOR, TINY, BRANCH, REVISION].compact
32 STRING = ARRAY.join('.')
32 STRING = ARRAY.join('.')
33
33
34 def self.to_a; ARRAY end
34 def self.to_a; ARRAY end
35 def self.to_s; STRING end
35 def self.to_s; STRING end
36 end
36 end
37 end
37 end
General Comments 0
You need to be logged in to leave comments. Login now