Efficient way to get the previous revision number
From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Fri, 2 May 2008 15:10:03 +0100
Given a revision number I need to find out the revision of the previous
What I am doing at the moment is something like
svn --quiet log [dir1 URL] 103:1 | head -2 | tail -1 | cut -d" " -f1 |
I thought about using the --limit option but that would give me 105 (in
My script works just fine, but I think that getting the log from
Does anybody think of a better, more efficient, way to achieve this?
I'm using SVN 1.4.4 and ksh for the script.
Thanks
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.