This page last changed on Oct 14, 2007 by smaddox.

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

Screenshot: Patch tab


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

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. For example:

p4 diff -du > patch.txt

Then do a p4 opened to find added and deleted files. For added files, 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.

A future version of Crucible will include helper tools to assist in this process.


PatchReview.png (image/png)
Document generated by Confluence on Nov 29, 2007 18:19