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

RE: Getting HEAD revision number from a URL

From: Garrick Olson <Garrick.Olson_at_Aceva.com>
Date: 2004-10-26 22:08:21 CEST

Ben wrote:
>It sounds like you're missing a fundamental SVN concept. The
>repository has a single, global revision number. There's no such thing

>as "the latest revnum of a path".

I understand global revision numbers. There is also the concept of
which of those global revisions affect a given path (in the sense
svn log filters the list of revisions).

As Peter pointed out later in the thread, the following "works" if you
parse out the first revision it returns:

svn log -q svn://myhost/myrepos/mybranch

Of course, I place quotes around "works" due to the fact I could have
200,000 revisions in my repository, in which case the above command is
expensive.

Here are a couple simple ways the log command could be modified to
solve the issue:

1. Allow some way to cap the number of log entries returned

This way, we could do a simple log command as above, but somehow
indicate we only want one log entry to be returned.

I seem to recall people wanting this feature for other reasons as
well, such as displaying the log incrementally in graphical tools.

2. Make the concept of "latest revision affecting a path" explicit

Add a keyword that identifies the latest revision that will not be
filtered out of the log command, e.g.:

svn log -rLATEST ...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 26 22:10:55 2004

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.