Crucible 1.1 : 2.1.5 Creating a Patch Review
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.
CVS Patch CreationTo create a patch in CVS, use the cvs diff -Nu command from your workspace. For example: cvs diff -Nu > patch.txt SVN Patch CreationTo create a patch in Subversion, use the svn diff command from your workspace. For example: svn diff > patch.txt
Perforce Patch CreationTo 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.
|
![]() |
Document generated by Confluence on Nov 29, 2007 18:19 |