title: Python: How to create diff/patch files between 2 revisions for a single URL?
body: <p>I would like to create a diff (patch) file between two revisions for a single SVN URL, including lines of unified context.</p>
  
  <p>Basically I need to provide a Python method to achieve the following:</p>
  
  <p>URL to the SVN repository
  number for first (before) revision
  number for second (after) revision</p>
  
  <p>The output I require is as follows:</p>
  
  <p>number of lines of code in head revision
  number of changed files</p>
  
  <p>actual diff files.</p>
  
  <p>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?</p>