Here i m going to tell you how we can easily create a patch file and how we can apply that patch file in to our source code;
Creating the patch file:
To create a patch file you need to have SVN access. When you want to create a patch file
move to the location that you have a difference with svn . Then use the bellow command to create the patch file.
svn diff > patchFileToBeCreated.txt
this will create the patch file called "patchFileToBeCreated.txt" in the same location.
Then when any other person wants to apply your patch to his source , he should have the same SVN revision that you created your patch file.
to apply the created patch file , you have to go to the same folder path that you created your patch file
Then use the bellow command to apply the patch to your source
patch -p0 < patchFileToBeCreated.txt
No comments:
Post a Comment