100806-0.9.6_add_cross_project_links_with_changesets.patch

Patch to add cross-project references when fixing via repository commit keywords - Pieter Smith, 2010-08-06 14:25

Download (771 Bytes)

View differences:

app/models/changeset.rb
111 111
          next if issue.status.is_closed?
112 112
          csettext = "r#{self.revision}"
113 113
          if self.scmid && (! (csettext =~ /^r[0-9]+$/))
114
            csettext = "commit:\"#{self.scmid}\""
114
            csettext = "commit:#{self.scmid}"
115 115
          end
116
          csettext = "#{self.repository.project.identifier}:#{csettext}"
116 117
          journal = issue.init_journal(user || User.anonymous, ll(Setting.default_language, :text_status_changed_by_changeset, csettext))
117 118
          issue.status = fix_status
118 119
          unless Setting.commit_fix_done_ratio.blank?