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

What is the easiest way to determine the HEAD revision number?

From: Garrick Olson <Garrick.Olson_at_Aceva.com>
Date: 2004-02-01 11:04:16 CET

Some code I am writing needs to determine the latest revision number in
the repository.

I am currently doing this by issuing a command like:

svn log --non-interactive --xml -r HEAD:COMMITTED mywc

This may return (many) multiple log entries, but the first entry should
contain the latest revision.

Will this command work in *all* situations? (No situations where is
might return no entries?)
Is there a more direct or efficient way to do this?
Received on Sun Feb 1 11:04:33 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.