TortoiseCVS
Last modified: February 28, 2008 - 12:22
TortoiseCVS is a graphical CVS client for Windows. For more on using this with Drupal, see http://drupal.org/node/227524
Step 1: Checkout Drupal from CVS
- Download and install TortoiseCVS.
- Right-click anywhere, Checkout from CVS...
- Fill out the following settings:
- By default, Drupal HEAD is retrieved. If required, click the Revision tab, Choose branch or tag and select an older version, e.g. DRUPAL-5.
- Click OK.
- If prompted, enter the password 'anonymous'.
Step 2: Creating a patch
- Make whatever changes to the Drupal files.
- Right-click the "root" Drupal folder (e.g. "drupal"), CVS > Make Patch....
- Enter a name, Save.

Top directory ignored making patch
I came across a problem today when trying to make a patch using TortoiseCVS. It seems that the directory below the one where it is called is ignored. For instance, if I have drupal installed in htdocs/drupal7/, and I change node.module (which is in /drupal7/modules/system), when I make a patch from /drupal7, the path in the patch is system/system.module instead of modules/system/system.module. The patch then fails when I try to install it from /drupal7, which is where you usually want to install from. Has anyone else seen this problem?
Can confirm this behavior
I can confirm this behavior, but don't know how to amend it. It's annoying because all my patches fail the automatic testing on drupal.org.
Frank