4

2

How do we set up TortoiseSVN source control integration?

flag

2 Answers

4

If anyone on your team uses TortoiseSVN, a Subversion client for Windows, follow these steps to configure it to prompt for case numbers when you enter log messages.

First, make sure FogBugz and your Subversion server are both setup for integration by following these steps. Next, setup your TortoiseSVN clients:

  • Check out your repository
  • cd to the root directory of your checkout
  • Run the following commands from the command line. Notice the dots which are important.

    svn propset bugtraq:label "BugzID:" .

    svn propset bugtraq:url "http://Your FogBugz URL/default.asp?%BUGID%" .

    svn propset bugtraq:message "BugzID: %BUGID%" .

    svn propset bugtraq:number "true" .

    svn propset bugtraq:warnifnoissue "false" .

    svn commit -q -m "Added BugzID properties to the repository"

  • If you would prefer to run these commands from a batch file, you need to escape the % signs by doubling them to prevent the batch file from replacing them with nothing.

    svn propset bugtraq:label "BugzID:" .

    svn propset bugtraq:url "http://Your FogBugz URL/default.asp?%%BUGID%%" .

    svn propset bugtraq:message "BugzID: %%BUGID%%" .

    svn propset bugtraq:number "true" .

    svn propset bugtraq:warnifnoissue "false" .

    svn commit -q -m "Added BugzID properties to the repository"

  • Tortoise will search up your folder path on a checkout looking for this property, so if you checkout from other folders in your tree, be sure to do the same procedure for those folders also. We used to ask people to execute the above commands with the -R flag to do this recursively, but it has been reported that this can slow down Subversion. More details are available in this guide.

link|flag
1

Newer ever do this in your working directory, the last commit actually commits everything to the repository, this wrecking everything if you have lots of loose ends..

the first line should read: "Check out your repository to an NEW DIRECTORY"

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.