diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 10:24:44 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 10:24:44 +0000 |
commit | 0606dfdb62b1c4d8b65fdeaa187feeb04a364d1c (patch) | |
tree | f9dc984bb90a911da02089b175d4101b415d918b /lib | |
parent | a5384e4e8845e84f9801605ad5161749e05fdf60 (diff) | |
download | redmine-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.rb | 11 |
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 |