Feature #20689

Updated by Toshi MARUYAMA about 7 years ago

There is feature for [[RedmineSettings#Referencing-issues-in-commit-messages|Referencing "Referencing issues in commit messages]].

Let's say I'd like to add some "properties":http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-bugtracker.html during repository creation to highlight the issue's URL or keywords from above feature in TortoiseSVN commit dialogue window in log message.
To achieve result as on picture above I need to set such changes in my working copy and commit changes:
- svn propset bugtraq:url "http://redmine.com/issues/%BUGID%" .
- svn propset bugtraq:logregex "([Rr]efs #\d+)|([Ff]ixes #\d+) (\d+)"
There should be extra option in reposman.rb to accept new optional argument, say *--propset*. This argument have to point to text file with properties defined.
Then we execute:
ruby reposman.rb --redmine my.redmine.host \
--svn-dir /var/svn --owner www-data \
--url http://my.svn.server/svn/ \
--key=my_api_key \
--propset /root/repositorysettings.txt
and /root/repositorysettings.txt contains:
bugtraq:url "http://redmine.com/issues/%BUGID%" .
bugtraq:logregex "([Rr]efs #\d+)|([Ff]ixes #\d+) (\d+)"