Frage

Does pysvn have a way to parse diff files it creates? I want to extra the filename/filepath, head revision of each contained file, total lines changed, total files changed, etc.

If not, is there a manual way to do it? I need to parse a diff file that starts with "Index:" for each file contained in the diff but I don't know the exact format of these files. So if pysvn doesn't have a way of parsing this I need to figure out what the format is and do it myself (in Python). Is format an SVN-specific format? Is it published? Python sample code for parsing it would be great!

War es hilfreich?

Lösung

I was able to write a few lines of custom code using this. It totally saved the day, so big-ups to Aaron Bentley!

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top