This documentation relates to The page _Major Release Number could not be found.
If you are using an earlier version, please view the previous versions of the Crucible documentation and select the relevant version.

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

(warning) 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.

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