Home | Clover | Clover.NET | FishEye | Crucible | Support | Account | Download | Buy Now

Creating a Patch Review

Crucible allows you to review a change before it has been commited. To do this, you upload a patch file to the Patch tab when creating a review.

CVS Patch creation

To create a patch in CVS, use the cvs diff -Nu command from your workspace. For example:

cvs diff -Nu > patch.txt

SVN Patch creation

To create a patch in Subversion, use the svn diff command from your workspace. For example:

svn diff > patch.txt

Note: svn diff does not print any information about files copied in the workspace.

Perforce Patch creation

To create a patch in Perforce, you must ensure you have set P4DIFF to point to a GNU-compatible diff program.

Then use p4 diff -du to generate a patch for changed files.

p4 diff -du > patch.txt

Then do a p4 opened to find added and deleted files. For added file append them individually to the patch using GNU diff:

diff -u path_to_added_file /dev/null >> patch.txt

You can follow a similar procedure with deleted files using p4 print to extract the previous version of the file.

Note: a future version of Crucible will include helper tools to assist in this process.