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