Creating a patch :Suppose you have modified the project code and want to know the lines you changed.
You can export all you code changes to a file and reviewed with you manager
Use svn diff command to export changes into a file.
Eg: <projectDir>$svn diff > myPatch.diff
Applying a patch :Similarly you want to import others code changes in the form of patch file.
command to import / apply all changes is
<projectDir>$svn patch <patchfile> <projectDir>
Eg: svn patch xyz_changes.diff /home/xxx/workspace/projectX
You can do these tasks in GUI mode as well in eclipse.
Right click on project:
Team --> Create Patch
Team --> Apply Patch
No comments :
Post a Comment