summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 10:24:44 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 10:24:44 +0000
commit0606dfdb62b1c4d8b65fdeaa187feeb04a364d1c (patch)
treef9dc984bb90a911da02089b175d4101b415d918b /lib
parenta5384e4e8845e84f9801605ad5161749e05fdf60 (diff)
downloadredmine-0606dfdb62b1c4d8b65fdeaa187feeb04a364d1c.tar.gz
redmine-0606dfdb62b1c4d8b65fdeaa187feeb04a364d1c.zip
scm: move :identifier from to attr_accessor in AbstractAdapter::Revision class.
All scms which support blame use identifier. This commit remove the link of cvs blame revision. Redmine can not handle cvs revision (e.g. 1.2) as changeset identifier. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5403 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index aadf551ca..5addbfe09 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -300,8 +300,8 @@ module Redmine
end
class Revision
- attr_accessor :scmid, :name, :author, :time, :message, :paths, :revision, :branch
- attr_writer :identifier
+ attr_accessor :scmid, :name, :author, :time, :message,
+ :paths, :revision, :branch, :identifier
def initialize(attributes={})
self.identifier = attributes[:identifier]
@@ -315,14 +315,9 @@ module Redmine
self.branch = attributes[:branch]
end
- # Returns the identifier of this revision; see also Changeset model
- def identifier
- (@identifier || revision).to_s
- end
-
# Returns the readable identifier.
def format_identifier
- identifier
+ self.identifier.to_s
end
end