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
This commit is contained in:
parent
a5384e4e88
commit
0606dfdb62
@ -300,8 +300,8 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
class Revision
|
class Revision
|
||||||
attr_accessor :scmid, :name, :author, :time, :message, :paths, :revision, :branch
|
attr_accessor :scmid, :name, :author, :time, :message,
|
||||||
attr_writer :identifier
|
:paths, :revision, :branch, :identifier
|
||||||
|
|
||||||
def initialize(attributes={})
|
def initialize(attributes={})
|
||||||
self.identifier = attributes[:identifier]
|
self.identifier = attributes[:identifier]
|
||||||
@ -315,14 +315,9 @@ module Redmine
|
|||||||
self.branch = attributes[:branch]
|
self.branch = attributes[:branch]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the identifier of this revision; see also Changeset model
|
|
||||||
def identifier
|
|
||||||
(@identifier || revision).to_s
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns the readable identifier.
|
# Returns the readable identifier.
|
||||||
def format_identifier
|
def format_identifier
|
||||||
identifier
|
self.identifier.to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user