I would like to create a diff (patch) file between two revisions for a single SVN URL, including lines of unified context.
Basically I need to provide a Python method to achieve the following:
URL to the SVN repository
number for first (before) revision
number for second (after) revision
The output I require is as follows:
number of lines of code in head revision
number of changed files
actual diff files.
How can I do this using Python? I see many similar questions here but none specifically on how to achieve this in Python. Can anyone suggest some libraries/code to help accomplish this?
I noticed pysvn offers diff method. I think this is exactly what you need.