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

interesting 'svn log' bug

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2003-09-14 05:57:37 CEST

So I was experimenting with managing a repository's hooks directory in
the repository, via the following technique:

$ svnadmin create /tmp/repos
$ svn import /tmp/repos/hooks svn://localhost/tmp/repos/hooks -m "import
hooks"
Adding /tmp/repos/hooks/post-commit.tmpl
Adding /tmp/repos/hooks/post-revprop-change.tmpl
Adding /tmp/repos/hooks/pre-commit.tmpl
Adding /tmp/repos/hooks/pre-revprop-change.tmpl
Adding /tmp/repos/hooks/start-commit.tmpl

Committed revision 1.
$ cd /tmp/repos
$ svn co svn://localhost/tmp/repos/hooks temp
A temp/pre-revprop-change.tmpl
A temp/post-commit.tmpl
A temp/pre-commit.tmpl
A temp/start-commit.tmpl
A temp/post-revprop-change.tmpl
Checked out revision 1.
$ rm -rf hooks
$ mv temp hooks

Unfortunately, not everything works... Specifically, svn log blows up
on individual files in that checked out directory (works fine on the
directory itself by the way).

$ cd hooks
$ svn log pre-commit.tmpl
subversion/svnserve/serve.c:888: (apr_err=210005)
svn: Couldn't find a repository
svn: No repository found in
'svn://localhost/tmp/repos/hooks/pre-commit.tmpl'
subversion/libsvn_repos/repos.c:996: (apr_err=165005)
svn: Unsupported repository version
svn: Expected version '2' of repository; found no version at all; is
`/tmp/repos/hooks/pre-commit.tmpl' a valid repository path?
subversion/libsvn_subr/io.c:1435: (apr_err=20)
svn: Not a directory
svn: svn_io_file_open: can't open `/tmp/repos/hooks/pre-commit.tmpl/format'
$

Checking out the hooks directory into a location outside the repository
allows the log to work, and running log against the repository directly
works as normal. This is reproducable via ra_svn and ra_local, haven't
tried ra_dav.

I know this is a kind of weird setup, and I didn't really have any
reason to expect it to work entirely correctly, but this was not the
kind of problem I was expecting to see.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 14 05:58:22 2003

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.