Logo Search packages:      
Sourcecode: hgsubversion version File versions  Download package

def hgsubversion::svnwrap::subvertpy_wrapper::SubversionRepo::get_unified_diff (   self,
  path,
  revision,
  other_path = None,
  other_rev = None,
  deleted = True,
  ignore_type = False 
)
Gets a unidiff of path at revision against revision-1.

Definition at line 437 of file subvertpy_wrapper.py.

                                                         :
        """Gets a unidiff of path at revision against revision-1.
        """

        url = self.path2url(path)
        url2 = (other_path and self.path2url(other_path) or url)

        if other_rev is None:
            other_rev = revision - 1

        outfile, errfile = self.client.diff(other_rev, revision, url2, url,
                                            no_diff_deleted=deleted,
                                            ignore_content_type=ignore_type)
        error = errfile.read()
        assert not error, error

        return outfile.read()


Generated by  Doxygen 1.6.0   Back to index