I want to apply a patch to this bug (http://code.djangoproject.com/ticket/13095) but I have never done it before and I have no idea where to begin. Can anyone point me to a tutorial?
I want to apply a patch to this bug ( http://code.djangoproject.com/ticket/13095 ) but I
Share
On Linux/UNIX, you can use the
patchcommand for this.It works in the following way:
The patch command looks in the file to find the proper files it needs to update.
The
-p1tells patch to ignore the first level of the folder mentioned in the patch file. Often this is the project name itself. The--dry-runoption prevents actual execution, so you can experiment with it.When everything is allright, you can remove the
--dry-runoption, and the actual patch will be applied.On Windows, several tools (e.g. WinMerge / TortoiseMerge) have a “Apply patch” option in the menu, which will allow you to do the same thing.