On Thu, Aug 05, 2010 at 08:35:20AM +0200, Jens Vagelpohl wrote:
On 8/5/10 00:16 , Willi Langenberger wrote:
According to Jens Vagelpohl:
before=$(svn info $ROOT | grep "^Last Changed Rev:" | cut -d " " -f 4) svn up -q $ROOT after=$(svn info $ROOT | grep "^Last Changed Rev:" | cut -d " " -f 4)
I think
svn info $ROOT
doesnt give you the newest revision somewhere down the directory tree. You have to use something like
svn info -R $ROOT | grep "^Last Changed Rev:"| cut -d ""-f 4 | \ sort -k1n,1 | tail -1
(note the "-R" flag for the "svn info" command).
Thanks Willi, I'll give that a try when I have a moment. I wouldn't be surprised if that was the case.
At first I thought that might've been the case, but when I went hunting for examples among my checkouts, I couldn't find one! E.g. the zopetoolkit/doc/ tree had a last change made change to source/conf.py, without touching anything in the parent directory, and svn info on doc/ listed Last Changed Rev correctly. Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development