From RootdevWiki

Jump to: navigation, search

Contents

The Subversion Book

Subversion Tips and Tricks

How to delete the last revision from your repository

Not that you would ever do this, but on the off-chance you accidentally committed a revision and nobody else is using the repo, it is possible to remove the last revision by doing this:

 svnadmin dump -r 1:last_rev_but_1 /path/to/repo > dumpfile
 mv /path/to/repo /path/to/repo.bak
 svn create /path/to/repo
 svn load /path/to/repo < dumpfile

Remember to check the permissions on the newly created repo dir too.

Adding svn $Id$ Tags

Have you ever seen those $Id tags at the top of a file you've checked out of an svn repo? They keep track of the filename, revision number and name of the person who last checked the file in, but how do you add them?

Easy, just do the following:

svn propset svn:keywords Id "filename"

Job done!