I have a repository with a revision property called 'rs:version' stamped on a small subset of all
revisions. I am looking for a quick way to find all revisions for which this property exists and
print them out along with the property value. I have a script that will do this, but it is very
inefficient due to many server hits (the script follows). Anybody have a better way to query this
type of revision property?
====== begin ======
#!/bin/sh
# This script is brittle and requires the local copy to be fully up
# to date with no local modifications. If you see errors like:
# 119M: integer expression expected
# or
# 118:119: integer expression expected
# then your local copy is not in sync with the repository.
UPPER_LIMIT=`svnversion .`
i=1
while [ "$i" -le $UPPER_LIMIT ]
do
rev=`svn --revprop -r $i propget rs:version`
if [ -n "$rev" ]
then
echo $rev $i
fi
let "i+=1"
done
exit 0
======= end =======
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 22 00:00:40 2004