[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Efficient way to get the previous revision number

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Fri, 2 May 2008 13:16:38 -0400

>>>>> "Andrew" == Andrew Reedick <Reedick> writes:

>> I thought about using the --limit option but that would give me
>> 105 (in
>> the example above) which is not what I'm after.

 Andrew> It should give you 100, not 105. Svn log goes down, not up.

It goes either way. The default rev range is HEAD:1. If the range is
high to low, the log goes down; if it's low to high, it goes up.

For example, a nice way to find the rev at which a branch was created
is

        svn log --limit 1 --stop-on-copy -r 1:HEAD <branch>

   paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-02 19:17:27 CEST

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.