You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vlad Skvortsov <vs...@73rus.com> on 2006/10/06 20:14:32 UTC

svn log --revisions-only?

Hi!

I was thinking about possibility of adding another option to 'svn log' 
or somehow modifying existing option set. I often find myself in a need 
to list revision numbers of some branch without log messages. For 
example, when I need to find a branchpoint for particular branch, I do

$ svn log --stop-on-copy | grep ^r | tail -1

Or, in a script to find SVN revision given CVS revision number (for 
converted repository), I need to reiterate over revisions of certain 
path, checking 'cvs2svn:cvs-rev' property.

It would be nice if 'svn log' would be able to list revisions only, like

$ svn log --revisions-only --stop-on-copy
r18916 | vss | 2006-10-06 20:07:35 +0000 (Fri, 06 Oct 2006) | 1 line
r18915 | vss | 2006-10-06 19:57:08 +0000 (Fri, 06 Oct 2006) | 1 line
r18914 | vss | 2006-10-06 03:02:13 +0000 (Fri, 06 Oct 2006) | 1 line
r18913 | vss | 2006-10-06 02:59:37 +0000 (Fri, 06 Oct 2006) | 1 line
...


-- 
Vlad Skvortsov, vss@73rus.com, http://vss.73rus.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn log --revisions-only?

Posted by Vlad Skvortsov <vs...@73rus.com>.
Garrett Rooney wrote:

> On 10/6/06, Vlad Skvortsov <vs...@73rus.com> wrote:
>
>> Hi!
>>
>> I was thinking about possibility of adding another option to 'svn log'
>> or somehow modifying existing option set. I often find myself in a need
>> to list revision numbers of some branch without log messages. For
>> example, when I need to find a branchpoint for particular branch, I do
>>
>> $ svn log --stop-on-copy | grep ^r | tail -1
>>
>> Or, in a script to find SVN revision given CVS revision number (for
>> converted repository), I need to reiterate over revisions of certain
>> path, checking 'cvs2svn:cvs-rev' property.
>>
>> It would be nice if 'svn log' would be able to list revisions only, like
>>
>> $ svn log --revisions-only --stop-on-copy
>> r18916 | vss | 2006-10-06 20:07:35 +0000 (Fri, 06 Oct 2006) | 1 line
>> r18915 | vss | 2006-10-06 19:57:08 +0000 (Fri, 06 Oct 2006) | 1 line
>> r18914 | vss | 2006-10-06 03:02:13 +0000 (Fri, 06 Oct 2006) | 1 line
>> r18913 | vss | 2006-10-06 02:59:37 +0000 (Fri, 06 Oct 2006) | 1 line
>> ...
>
>
> You mean like 'svn log -q'?

Damn, I keep suggesting wheel invention again and again. :-) Yes, -q 
would perfectly work, sorry for bothering. :-)

-- 
Vlad Skvortsov, vss@73rus.com, http://vss.73rus.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn log --revisions-only?

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 10/6/06, Vlad Skvortsov <vs...@73rus.com> wrote:
> Hi!
>
> I was thinking about possibility of adding another option to 'svn log'
> or somehow modifying existing option set. I often find myself in a need
> to list revision numbers of some branch without log messages. For
> example, when I need to find a branchpoint for particular branch, I do
>
> $ svn log --stop-on-copy | grep ^r | tail -1
>
> Or, in a script to find SVN revision given CVS revision number (for
> converted repository), I need to reiterate over revisions of certain
> path, checking 'cvs2svn:cvs-rev' property.
>
> It would be nice if 'svn log' would be able to list revisions only, like
>
> $ svn log --revisions-only --stop-on-copy
> r18916 | vss | 2006-10-06 20:07:35 +0000 (Fri, 06 Oct 2006) | 1 line
> r18915 | vss | 2006-10-06 19:57:08 +0000 (Fri, 06 Oct 2006) | 1 line
> r18914 | vss | 2006-10-06 03:02:13 +0000 (Fri, 06 Oct 2006) | 1 line
> r18913 | vss | 2006-10-06 02:59:37 +0000 (Fri, 06 Oct 2006) | 1 line
> ...

You mean like 'svn log -q'?

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org