Vote #76709
未完了Ability to set properties during repository creation (SVN reposman)
0%
説明
There is feature for 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.
!propset.png!
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+)"
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------