Project

General

Profile

Defect #12685 » changeset.patch

Philippe Lafoucrière, 2012-12-28 18:13

View differences:

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
    (1-1/1)