blob: cfbfd56102e8e4e3baf3f4cc1fa9c8f4134a9414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
# (C) 2001 Charles Samuels <charles@kde.org>
#
# This script reverts all the files given on the command
# by one version, then you can commit them. This
# is like a less polite version of cvsblame ;)
#
for i in $@ ;
do
text=`cvs log "$i" | grep 'revision[^s]'`
current=`echo $text | awk '{print $2}'`
previous=`echo $text | awk '{print $4}'`
echo $i... "(reverting from $current to $previous)"
cvs up -j $current -j $previous $i
done
|