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/
A /trunk/

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

Continue reading »

© 2018 Associative Trails Ltd. 4m@