Project

General

Profile

Actions

Defect #13036

closed

auto generated comment "Applied in changeset xxx" is not link to commit

Added by Bảo Gia about 11 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

It should be:
"Applied in changeset commit:repoid|hash."
Not:
"Applied in changeset repoid|commit:hash."


Files

cs.patch (1.48 KB) cs.patch Fix repo identifier in commit link A B, 2013-03-17 06:51
cs_mod.patch (1.48 KB) cs_mod.patch Fix repo identifier in commit link patch update Viktor Berke, 2013-11-22 15:27

Related issues

Related to Redmine - Defect #12685: Commit message generates invalid link when repository has an identifierClosed

Actions
Is duplicate of Redmine - Defect #13544: Commit reference: autogenerated issue note has wrong commit link syntax in multi-repo or cross-project contextClosedJean-Philippe Lang

Actions
Actions #1

Updated by Dietmar H about 11 years ago

I can confirm this.
I guess the extended syntax is intentional, because now more then 1 repository per project are allowed. With svn repos, that means the repo must be included in the commit macro in order to uniquely identify the commit.
However the macro isn't expanded to a link if it contains the repo.

Redmine version here: 2.2.2.stable

Actions #2

Updated by Dietmar H about 11 years ago

seems to be a duplicate of #13005

Actions #3

Updated by Bảo Gia about 11 years ago

Dietmar Hofer wrote:

seems to be a duplicate of #13005

No. #13005 is abount repoid "contains underscores"

Actions #4

Updated by Bảo Gia about 11 years ago

Dietmar Hofer wrote:

I guess the extended syntax is intentional, because now more then 1 repository per project are allowed. With svn repos, that means the repo must be included in the commit macro in order to uniquely identify the commit.

No. This is a bug, not "intentional".
It should be "commit:repoid|hash" (have repoid => can support >1 repo per project)

Actions #5

Updated by A B about 11 years ago

Attached is a patch to fix this. Unlike the patch in #12685 this works for both hash-based and non-hash based (e.g. subversion) revisions, and includes a unit test for the hash-based case (the non-hash based case already has a test).

Actions #6

Updated by Daniel Felix about 11 years ago

Thanks for providing a patch!

I would like to test it but I can't. I'm currently at hospital. Maybe someone can check this. Maybe this one could find its way in 2.2.4/2.3 in a fast pace if it could be evaluated! :-)

Actions #7

Updated by Viktor Berke over 10 years ago

Hi, I can confirm this bug. I've tested both patches (i.e. this one and the one from #12685) on Redmine 2.4.0, they both work. Please merge this.

Actions #8

Updated by Viktor Berke over 10 years ago

Though I suggest some logical cleanup, i.e. | is not part of the repo id. The very slightly modified patch is attached.

Actions #9

Updated by Toshi MARUYAMA almost 9 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Fixed by #13544.

Actions #10

Updated by Toshi MARUYAMA almost 9 years ago

  • Is duplicate of Defect #13544: Commit reference: autogenerated issue note has wrong commit link syntax in multi-repo or cross-project context added
Actions

Also available in: Atom PDF