Project

General

Profile

Wiki link to changeset with multiple repositry

Added by Marco Pagano about 9 years ago

Hello all!

I have this strange problem: I have a project with 2 repository; the main and the second one.
When, in the wiki, I try to make a link to a changeset of the main repository it works like the help at the page
http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting
When I try it with the second one, the result is a link to a non existing page of a wiki of a non existing project named like the identifier of the repository.

Also, when I make the second one the default repository, the second link begin to work while the first one doesn't work anymore and begins to behave like the second one: link to a non existing page of a wiki of a non existing project named like the identifier of the repository.

Am I doing something wrong?

Thanks


Replies (5)

RE: Wiki link to changeset with multiple repositry - Added by Leonel Iturralde about 9 years ago

I did the same thing you described, but in order to create links to the changesets I had to specified the repository.
Using this example from the wiki: svn1|r758 (link to a changeset of a specific repository, for projects with multiple repositories)
It worked fine (no link to a non existing page of a wiki of a non existing project named like the identifier of the repository).

RE: Wiki link to changeset with multiple repositry - Added by Marco Pagano about 9 years ago

Ok..found it:

the problem was that I wrote [ [ svn1 | r758 ] ]

It was for the square brackets.

Thanks a lot

RE: Wiki link to changeset with multiple repositry - Added by Moritz Schappler over 7 years ago

Could someone give me a hint on how to use the syntax on git repos?
For single (git) repository it is commit:c6f4d0fd (already worked, repo has to be "main" for that project).
For multiple (git) repos I tried to change the svn example to something like repo-name|commit:c6f4d0fd but this does not format into a link.
For "repo-name" I used the tag I created for that repo in redmine.
Someone has an idea?

RE: Wiki link to changeset with multiple repositry - Added by Mischa The Evil over 7 years ago

Moritz Schappler wrote:

Could someone give me a hint on how to use the syntax on git repos?

Moritz, this is documented in your local help and on the RedmineTextFormattingTextile page. Quote from those sources:

commit:hg|c6f4d0fd (link to a changeset with a non-numeric hash of a specific repository)

So, using your example, you would need to use: commit:repo-name|c6f4d0fd

If you are interested in all the different possibilities (eg. combining multiple project repos with cross-project links and branches, or the other keywords 'source' and 'export'), I suggest you to take a look at the related1 tests in source:/trunk/test/unit/helpers/application_helper_test.rb yourself.

1 #test_redmine_links, #test_cross_project_redmine_links, #test_multiple_repositories_redmine_links & #test_cross_project_multiple_repositories_redmine_links.

    (1-5/5)