Feature #20689

Ability to set properties during repository creation (SVN reposman)

Added by Pavel Potcheptsov over 6 years ago. Updated about 6 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM extra
Target version:-
Resolution:

Description

There is feature for Referencing issues in commit messages.

Let's say I'd like to add some properties 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+)" 

propset.png (9.98 KB) Pavel Potcheptsov, 2015-09-07 11:59

History

#1 Updated by Toshi MARUYAMA about 6 years ago

  • Description updated (diff)

#2 Updated by Toshi MARUYAMA about 6 years ago

  • Subject changed from Ability to set properties during repository creation to Ability to set properties during repository creation (SVN reposman)
  • Category changed from SCM to SCM extra

Also available in: Atom PDF