Defect #8857 » Alias-the-revision-and-scmid-properties-for-Git-Revi.patch
lib/redmine/scm/adapters/git_adapter.rb | ||
---|---|---|
358 | 358 |
end |
359 | 359 | |
360 | 360 |
class Revision < Redmine::Scm::Adapters::Revision |
361 |
def initialize(attributes={}) |
|
362 |
super |
|
363 |
self.revision = attributes[:scmid] |
|
364 |
end |
|
365 | ||
366 |
# Returns the scmid. |
|
367 |
alias_method :revision, :scmid |
|
368 |
# Sets the scmid. |
|
369 |
alias_method :revision=, :scmid= |
|
370 | ||
361 | 371 |
# Returns the readable identifier |
362 | 372 |
def format_identifier |
363 | 373 |
identifier[0,8] |