OK
I think I finally figured out how it works - and although the solution for
now is not ideal due to API limitations, it works. The more desired solution
will be possible as soon as
svn propset will be allowed. There were numerous requests for that and I'm
going to add one to the pile.
So the links are displayed by TortoiseSVN if:
1) bug is in format .?\nBugzID:\s.*, where BugzID is just the value of
bugtraq:label. The new line before it is important.
2) bugtraq:* are located in your check-out repository in your present
directory or up the hierarchy - please notice - your check-out directory -
not on SVN repository - that means for example that if you call the
repo-browser on non-checked out directory there will be no links, also if
you check-out a subdirectory from your project directory and it has no
properties bugtraq:* there will be no links as well.
0) log_reex -> (.?)\nBugzID:\s.*' - this will enforce to links all Tortoise
operations with automatic commit to introduce links as well - ex. move, copy
etc. as there is no window for bug entrance as well
1) So the solution for that - as you know we can use that:
svn propset -R bugtraq:label "BugzID:" . svn propset -R
bugtraq:url "http://your.fogbugz.url/default.asp?%BUGID%". svn
propset -R bugtraq:message "BugzID: %BUGID%" . svn propset -R
bugtraq:number "true" . svn propset -R bugtraq:warnifnoissue "false" .
svn commit -q -m "Added BugzID properties to the repository"
But it has several drawbacks:
- You just can not introduce it to the repository with many branches
or labels as it can mean TerraBytes to be checked-out
- It creates a new version of EACH file in your repository
- If you create new projects / directories you must remember to add
it
2) One possible solution is to add it to the repository in pre-commit
scripts but to each file parent directory:
- it would add extra the code to scripts
- user would need to update view after that.
- every change will be the local one
3) A brute solution - want to have links? Run this bat in your main project
directory:
svn propset bugtraq:label "BugzID:" .
svn propset bugtraq:url "http://wawntdev1/mantis/view.php?id=%%BUGID%%" .
svn propset bugtraq:message "BugzID: %%BUGID%%" .
svn propset bugtraq:number "true" .
svn propset bugtraq:warnifnoissue "false" .
Please notice - no recursion so only a new version for the main directory -
the rationality of this solution is that 99.95% times it makes no sense to
check-out subdirectories in project. If for some reason you need that just
run the script again. Please notice that the operation is that easy that it
can be done by a project leader.
Kristis: Do you think that we are able to implement 2) gracefully basing on
3) - only attributes for parent directories? Is there a way to avoid updates
after adding properties in pre script?
Best regards
Marek
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users