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

Re: svnlook using HEAD

From: Ben Reser <ben_at_reser.org>
Date: 2004-06-30 19:10:16 CEST

On Mon, Jun 21, 2004 at 10:39:53PM -0400, Jeff Machols wrote:
> Hi all,
>
> I am having a problem with the svnlook using the --revision HEAD
>
> [svn@wiley svn]$ svnlook youngest /opt/repos/testrepo
> 151
>
> [svn@wiley svn]$ svnlook propget --revision HEAD /opt/repos/testrepo
> STATE trunk/source/java/hello.java
> svn: Path 'trunk/source/java/hello.java' does not exist
>
> [svn@wiley svn]$ svnlook propget --revision 151 /opt/repos/testrepo
> STATE trunk/source/java/hello.java
> test

svnlook does not support anything other than numeric revision numbers.

Until we change that, which we probably ought to:
svnlook propget --revision `svnlook youngest /opt/repos/testrepo`
/opt/repos/testreop

Is your only option.

> Same thing with the proplist command in svnlook, but some commands seem
> OK:
>
> [svn@wiley svn]$ svnlook date --revision HEAD /opt/repos/testrepo
> 2004-04-06 13:37:28 -0400 (Tue, 06 Apr 2004)

Looks okay but is wrong:

$ svnlook youngest test-repo
8
$ svnlook date -r 8 test-repo
2004-06-22 17:08:22 -0700 (Tue, 22 Jun 2004)
$ svnlook date -r HEAD test-repo
2004-06-22 16:59:00 -0700 (Tue, 22 Jun 2004)

Passing anything other than a valid positive integer results in us
looking in revision 0, because this command is using strol() to convert
the command line arg to a revision number. strol() returns 0 when the
string passed into it is not a number.

I'm working on fixing this right now. It'll give a better error
message, but still won't support HEAD.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 30 19:16:23 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.