summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-24 13:03:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-24 13:03:36 +0000
commitbb36fa5d1208dcf24506e7d5c600443c5b83828d (patch)
tree4d5e823f72ce0affbd81680ed423ffba3a84f01b /app
parentfae5250e52506356965a478518aa7960ada3ec61 (diff)
downloadredmine-bb36fa5d1208dcf24506e7d5c600443c5b83828d.tar.gz
redmine-bb36fa5d1208dcf24506e7d5c600443c5b83828d.zip
Adds the repository identifier to Changeset#text_tag (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9255 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/changeset.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index a026790b2..645745206 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -157,6 +157,9 @@ class Changeset < ActiveRecord::Base
else
"r#{revision}"
end
+ if repository && repository.identifier.present?
+ tag = "#{repository.identifier}|#{tag}"
+ end
if ref_project && project && ref_project != project
tag = "#{project.identifier}:#{tag}"
end