Exporting changed only files with Subversion
Reading the referers of this website, I found that someone reached it querying a search engine for subversion or svn export only changed files This one-liner (that can be easily turned into a subversion hook) could do the task for i in `svn log -r HEAD -v | grep “^ [MA]” | awk ‘{print $2}’`; [...]
Updating WordPress with Subversion and sitecopy
I don’t know why but the official Installing/Updating WordPress with Subversion page doesn’t mention an easier (and better?) way to do the same task: svn co http://svn.automattic.com/wordpress/tags/2.1.1/ wordpress-2.1.1 # substitute 2.1.1 with the version number you need svn export –force wordpress-2.1.1 wp_blog # wp_blog is a folder with your external and previous WordPress version’s files [...]
Finding file extensions with AWK
This one-liner helps in finding the file extensions of a given Subversion working copy: find path_to_repos -type f | grep -v “/.svn/” | awk -F “/” ‘{print $NF}’ | awk -F “.” ‘{if (NF > 1) {print $NF}}’ | sort | uniq Its usage outside of Subversion is even more trivial.
rsync helps exporting Subversion’s working copies
This one-liner helps you to keep a mirror of a working copy of a Subversion repository without its .svn directories. It may speed up the test-modify-commit cycle: it acts like an export but it should be faster. The command is: rsync -apogz –delete –exclude=”.svn/” /working_copy/path/ /testing/point/ rsync -Dgloprtz –delete –exclude=”.svn/” /working_copy/path/ /testing/point/ Of course the [...]
Joomla Subversion behind a proxy
This is a note about how to checkout the Joomla stable (1.0.x) Subversion repository when you are behind a proxy. I know there are many sites explaining how to do that but I was not able to find one of them with an out of the box working solution. This is my recipe. 1) Add [...]
