[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RSS feed for GNUstep SVN repository?
From: |
Andrew Ruder |
Subject: |
Re: RSS feed for GNUstep SVN repository? |
Date: |
Wed, 29 Mar 2006 16:43:48 -0600 |
User-agent: |
Mutt/1.5.9i |
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.
address@hidden ~ $ 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
- RSS feed for GNUstep SVN repository?, Richard Frith-Macdonald, 2006/03/25
- Re: RSS feed for GNUstep SVN repository?, Andrew Ruder, 2006/03/25
- Re: RSS feed for GNUstep SVN repository?, Richard Frith-Macdonald, 2006/03/29
- Re: RSS feed for GNUstep SVN repository?, Derek Zhou, 2006/03/29
- Re: RSS feed for GNUstep SVN repository?, Andrew Ruder, 2006/03/29
- Re: RSS feed for GNUstep SVN repository?, Derek Zhou, 2006/03/29
- Re: RSS feed for GNUstep SVN repository?,
Andrew Ruder <=
- Re: RSS feed for GNUstep SVN repository?, Andrew Ruder, 2006/03/29
- Re: RSS feed for GNUstep SVN repository?, Derek Zhou, 2006/03/29
Re: RSS feed for GNUstep SVN repository?, Gregory John Casamento, 2006/03/26