Mercurial > hg > soundsoftware-site
comparison app/models/changeset.rb @ 1494:e248c7af89ec redmine-2.4
Update to Redmine SVN revision 12979 on 2.4-stable branch
author | Chris Cannam |
---|---|
date | Mon, 17 Mar 2014 08:54:02 +0000 |
parents | 261b3d9a4903 |
children | dffacf8a6908 |
comparison
equal
deleted
inserted
replaced
1464:261b3d9a4903 | 1494:e248c7af89ec |
---|---|
1 # Redmine - project management software | 1 # Redmine - project management software |
2 # Copyright (C) 2006-2013 Jean-Philippe Lang | 2 # Copyright (C) 2006-2014 Jean-Philippe Lang |
3 # | 3 # |
4 # This program is free software; you can redistribute it and/or | 4 # This program is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU General Public License | 5 # modify it under the terms of the GNU General Public License |
6 # as published by the Free Software Foundation; either version 2 | 6 # as published by the Free Software Foundation; either version 2 |
7 # of the License, or (at your option) any later version. | 7 # of the License, or (at your option) any later version. |
152 def long_comments | 152 def long_comments |
153 @long_comments || split_comments.last | 153 @long_comments || split_comments.last |
154 end | 154 end |
155 | 155 |
156 def text_tag(ref_project=nil) | 156 def text_tag(ref_project=nil) |
157 repo = "" | |
158 if repository && repository.identifier.present? | |
159 repo = "#{repository.identifier}|" | |
160 end | |
157 tag = if scmid? | 161 tag = if scmid? |
158 "commit:#{scmid}" | 162 "commit:#{repo}#{scmid}" |
159 else | 163 else |
160 "r#{revision}" | 164 "#{repo}r#{revision}" |
161 end | |
162 if repository && repository.identifier.present? | |
163 tag = "#{repository.identifier}|#{tag}" | |
164 end | 165 end |
165 if ref_project && project && ref_project != project | 166 if ref_project && project && ref_project != project |
166 tag = "#{project.identifier}:#{tag}" | 167 tag = "#{project.identifier}:#{tag}" |
167 end | 168 end |
168 tag | 169 tag |