The style menu is suppressed whilst redesign occurs.
TortoiseCVS/CVSNT Notes, Three
Finally managed to get the postcommit script working, and here’s what we learned, not necessarily in the order in which we learned it:
postcommit file, the location for the postcommit script must be a full Windows path if you are going to use the Windows Scripting Host (WSH). The CVSNT Wiki sample postcommit script uses the environment variable $CVSROOT to begin the script location path, but we found that that confuses WSH.checkout rather than export with the postcommit script. The main functional part of the script is to call a CVSNT command from the command line, and export has no options to remove or add directories. In other words, using checkout makes the postcommit script essentially a mirror script, which export is a snapshot of sorts. It would seem possible that pushing files to production might be automated using export, but that might cause problems with datestamps.Our CVS repository path is drive:\cvsrepo\[project] and our development path pattern is drive:\[dev directory]\[project]. So when a file is checked in, the parameter passed is \cvsrepo\[project]\[dir]\[file]. We use the essentials of the CVSNT wiki’s sample script to strip off \cvsrepo and \[dir]\[file] and to add drive:\[dev directory] so what gets passed to a commandline as the checkout directory to update is the development path pattern — that is, the root directory of the dev project.
TortoiseCVS/CVSNT Notes, Two
The best way to get answers for CVSNT is to search the mailing list using our friend Google, or to ask the list yourself. There are three or four people who seem to have most of the best answers, as seems often to be the case on lists of this sort, but stick around — you may be able to help out eventually.
TortoiseCVS/CVSNT Notes, One
To make changes to CVS administration files, you have to check out/edit/commit the files the same way you check anything else. Learning this (from an email in the CVSNT newsgroup/mailing list archives) helped me a whole bunch. We’re working on getting something set up for a postcommit script, and it’s driving us crazy. However, we have been able to get one script working, so it’s getting brighter.
Caution: Learning Curves Ahead
We are learning a number of new things in our new situation, the current one being CVSNT and the TortoiseCVS client. Here are the problems we are having so far:
We have no fear of exposing our ignorance in public, as you can see, and we are doing research to find the answers to these questions. Thus far in our career, we’ve only run CVS on our box at home and have not had to worry about multi-user issues. As a whole, these issues can generally be filed under the broader question, “What is the relationship between the filesystem and CVS file tracking?” Once files are committed into CVS, can we delete the original files, as we have done with Microsoft’s Visual Source Safe? How are files centralized? How do projects such as TortoiseCVS itself manage developers scattered geographically? Can they all add files?
posted by Tk at 09:16 • • sealed in amber