/[scripts]/trunk/svn-rollback-iselect.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/svn-rollback-iselect.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (hide annotations)
Sat Jan 10 14:22:34 2009 UTC (14 years ago) by dpavlin
File MIME type: application/x-sh
File size: 576 byte(s)
rollback repository to any previous revision by
svnadmin dump/load after you select revision with
iselect interface

1 dpavlin 103 #!/bin/sh -x
2    
3     repository=$1
4    
5     if [ -z "$repository" ] ; then
6     echo "usage: $0 repository"
7     exit
8     fi
9    
10     file=file://`pwd`/Frey
11    
12     rev=`svn log $file | sed 's/^r/<s>r/' | head -5000 | iselect -t "rollback repository $file to revision" | cut -d \| -f1`
13     if [ ! -z "$rev" ] ; then
14     rollback=$repository.rollback
15     svnadmin create $rollback || exit
16     svnadmin dump -r 0:$rev $repository | svnadmin load $rollback || exit
17     du -kcs $repository $rollback
18     echo "# if correct rename rollback repository to original name:"
19     echo "mv $repository $repository.orig && mv $rollback $repository"
20     fi
21    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26