wiki shortcut for revision in a specific repository?

8 views
Skip to first unread message

sweatje

unread,
Aug 25, 2012, 1:35:58 PM8/25/12
to mtr...@googlegroups.com
I would like to have my svn commit put in a comment on the ticket if it is referenced in the commit message.  When I do this with just [r49] it links to the default svn repository revision.  Is there wiki syntax to point it to a specific repository?  For that matter, can tickets be associated with a specific project or repository?  I saw components could be associated with a project, but tickets and milestones seem to be global?

Regards,
Jason

Wez Furlong

unread,
Aug 25, 2012, 1:45:27 PM8/25/12
to jason...@gmail.com, mtr...@googlegroups.com
Yep, take a look at help.php/WikiFormatting#Linking-to-mtrack-objects-and-resources for details on the various markup you can use for links.

In particular, you can use [changeset:reponame,revision] to point to a revision.

There's actually some logic in the commit hook that will look for [123] style links and automatically convert it to [changeset:reponame,revision] format.  This only works if you leave out the "r" prefix, so [123] is converted but [r123] is not.

--Wez.



--
The mtrack software development tracker
To post to this group, send email to mtr...@googlegroups.com
To unsubscribe, send email to mtrack+un...@googlegroups.com
For more options: http://groups.google.com/group/mtrack?hl=en
#mtrack on the freenode IRC network

sweatje

unread,
Aug 25, 2012, 4:41:04 PM8/25/12
to mtr...@googlegroups.com
Great! got that working, and also found default.repo in configuration.

Seem to be having issues with post-commit still.  I posted a comment with something like
work on #2 (spent 0.5) some other stuff about what was done
and expected it to log some hours to the #2, which did not seem to happen

Also, kind of miss the trac default logging where if I commit anything referencing a ticket number, it appends the commit message to the ticket as a comment

Also, also, I am about to try the trac like commit message to close a ticket (e.g. fixes #2)  do I have a prayer of this working in mtrack?

Regards,
Jason
Reply all
Reply to author
Forward
0 new messages