Blog archive: Python

Listing the affected files in a Subversion revision

A quick trick that I'm finding very useful for those little deployments that don't require a full export of the Subversion repository. A little regex on the standard verbose output of the Subversion log like so:


svn log -r HEAD -v | egrep '^ +[A-Z]'


will output a list of the files included in the specified revision, e.g.:


M /trunk/apps/Feedback/views.py
A /trunk/fabfile.py


The letters "A", "M" or "D" denote whether the file was added, modified or deleted.

Continue reading »

24 November 2009 | Add the first comment |

Matt's latest tweets

Loading...

Latest blog entries

Blog archive

Categories


www.associativetrails.com