On Wed, Mar 29, 2006 at 12:42:29PM -0800, Derek Zhou wrote: > Thanks. But the problem is, I don't want last (wrt. the HEAD) commit > or last n commits, I want _next_ (wrt. my current tree revision) commit.
svn log also takes an argument where you can specify revisions. Since more than likely you will be parsing the output of svn log, you could easily a.) find your last revision you worked with b.) svn log -r $currentrev:HEAD (and parse this output to handle the new revisions). For example, let's say I last handled 22702 of libs/base/trunk sgs=http://svn.gna.org/svn/gnustep/libs/base/trunk currentrev=22702 svn log -r HEAD:$currentrev $sgs/libs/base/trunk | grep -A 1 '^-------' | grep '^r' | sed -e 's/.\([0-9]*\).*/\1/' | head -n -1 | tac This outputs all the revisions (in order) since the last processing. [EMAIL PROTECTED] ~ $ svn log -r HEAD:22702 $sgs/libs/base/trunk | grep -A 1 '^-------' | grep '^r' | sed -e 's/.\([0-9]*\).*/\1/' | head -n -1 | tac Output: 22703 22705 22711 22712 22713 22714 22723 Hope that helps, Andy -- Andrew Ruder http://www.aeruder.net _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev