Defect #12685 » changeset.patch
app/models/changeset.rb (working copy) | ||
---|---|---|
154 | 154 | |
155 | 155 |
def text_tag(ref_project=nil) |
156 | 156 |
tag = if scmid? |
157 |
"commit:#{scmid}" |
|
157 |
if repository && repository.identifier.present? |
|
158 |
"commit:#{repository.identifier}|#{scmid}" |
|
159 |
else |
|
160 |
"commit:#{scmid}" |
|
161 |
end |
|
158 | 162 |
else |
159 | 163 |
"r#{revision}" |
160 | 164 |
end |
161 |
if repository && repository.identifier.present? |
|
162 |
tag = "#{repository.identifier}|#{tag}" |
|
163 |
end |
|
164 | 165 |
if ref_project && project && ref_project != project |
165 | 166 |
tag = "#{project.identifier}:#{tag}" |
166 | 167 |
end |