Changes between Version 14 and Version 15 of Howto


Ignore:
Timestamp:
Mar 7, 2010, 8:37:36 AM (4 years ago)
Author:
rhebus
Comment:

Add information about creating a patch from the command line; simplify by removing some crufty info

Legend:

Unmodified
Added
Removed
Modified
  • Howto

    v14 v15  
    67672) attach the patch file to the relevant ticket 
    6868 
    69 '''Windows'''[[BR]] 
     69'''Command Line'''[[BR]] 
    7070 
    71 ''Creating a patch file''[[BR]] 
     71If the only changes you have made to your checkout are related to the patch you want to create, you can create a patch by going to the root of your working copy and typing: 
     72 
     73$ svn diff > patch_name.patch 
     74 
     75This will create a file called "patch_name.patch" which will contain information about all the changes you have made to your working copy. 
     76 
     77'''TortoiseSVN'''[[BR]] 
    7278 
    7379First you need to make and test your changes. Then instead of using TortoiseSVN → Commit... on the parent folder, you select TortoiseSVN → Create Patch... [[BR]] 
     
    7581you can now select the files you want included in the patch, just as you would with a full commit. This will produce a single file containing a summary of all the changes you have made to the selected files since the last update from the repository. [[BR]] 
    7682 
    77 You can produce separate patches containing changes to different sets of files. Of course, if you create a patch file, make some more changes to the same files and then create another patch, the second patch file will include both sets of changes.[[BR]] 
    78   
    7983Just save the file using a filename of your choice. Patch files can have any extension you like, in our project you should use the .patch extension.  The file name should look like <my_patch_file_name.patch>.  You are now ready to submit your patch file.[[BR]] 
    80   
    81 You can also save the patch to the clipboard instead of to a file. You might want to do this so that you can paste it into “past bin” http://pastebin.com for review by others. Or if you have two working copies on one machine and you want to transfer changes from one to the other, a patch on the clipboard is a convenient way of doing this.[[BR]] 
    8284  
    8385[[BR]] 
    8486 
    85 ''Submitting the patch file''[[BR]] 
     87'''Submitting the patch file'''[[BR]] 
    8688 
    8789Submitting a patch in the padre project simply means attaching the patch file created to a Ticket.[[BR]]