Bugzilla:Patches: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 17: Line 17:
Where ''new-file-name'' is the name of the file you added.
Where ''new-file-name'' is the name of the file you added.


== Using CVS On Windows==
Alternately, you can also add files to your patch by using the "cvsdo" program on *nix or [http://viper.haque.net/~timeless/redbean/cvsdo.pl cvsdo.pl] on Windows. Before you do the "cvs diff" in step 2 above, do:
 
   cvsdo add ''new-file-name''
The process of creating patches on a windows OS is slightly different. When adding a new file to a patch you will need to add entry for each new file to the appropriate CVS/entries file.
(Except on Windows, that would be "cvsdo.pl" or "perl.exe cvsdo.pl" instead of just "cvsdo".)
 
1. Change to your Bugzilla directory:
  cd C:\Inetpub\wwwroot\bugzilla
 
2. Make the patch by doing:
  cvs diff -Nup > patch.diff
 
At the top of the patch.diff file you will see references to unknown/new files:
  ? images/newimage.gif
 
3. Add new files to the patch by adding an entry to the top of the appropriate CVS/entries file for each file you are adding:
   /new-file-name/0///
Where ''new-file-name'' is the name of the file you added.
 
3. Make the patch by doing:
  cvs diff -Nu > patch.diff
 
You now have a file called patch.diff! It includes all your changes and additions.


== Using diff ==
== Using diff ==
canmove, Confirmed users
345

edits

Navigation menu