SVN: Revisionen rückgängig machen

Wenn man so rumbastelt wie ich, kann es schon mal vorkommen dass man Sachen eincheckt, die man dann später wieder bereut.

Um nun eine gesamte Revision rückgängig zu machen, ist wie folgt vorzugehen (Mal angenommen, ich will r13 rückgängig machen):

$ svn merge -c -13 http://example.com/repo/trunk
# Dadurch wird das Changeset von r13 rückwärts angewendet
$
$ svn commit -m 'Undoing changes commited in r13'

Eh voila!

Gefunden in den Common Use-Cases im SVN-Book

Linux/Unix: Ordner rekursiv durchsuchen und Files löschen

[cc lang="bash"]find . -name .svn -type d -exec rm -r “{}” \;[/cc]

Auszug aus man find:

-exec utility [argument ...] ;
True if the program named utility returns a zero value as its exit status. Optional arguments may be passed to the utility. The expression must be terminated by a semicolon (``;''). If you invoke find from a shell you may need to quote the semicolon if the shell would otherwise treat it as a control operator. If the string ``{}'' appears anywhere in the utility name or the arguments it is replaced by the pathname of the current file. Utility will be executed from the directory from which find was executed. Utility and arguments are not subject to the further expansion of shell patterns and constructs.