You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Johan Lindh <jo...@linkdata.se> on 2002/12/22 14:33:49 UTC

Can't get svnadmin working -- but svn works ... what gives?

OpenBSD 3.2-RELEASE

[joli@solid ~] svn --version 
svn, version 0.16.0 (dev build)
   compiled Dec 22 2002, 02:29:40
 
Copyright (C) 2000-2002 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
 
The following repository access (RA) modules are available:
 
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' schema

[joli@solid ~] svn co file:///home/svn/linkdata/mw2 wc                          
A  wc/memwatch.lsm
A  wc/gpl.txt
A  wc/test.c
A  wc/USING
A  wc/memwatch.c
A  wc/FAQ
A  wc/memwatch.h
A  wc/README
A  wc/Makefile
Checked out revision 1.

[joli@solid ~] svnadmin lstxns file:///home/svn/linkdata
subversion/libsvn_repos/repos.c:795: (apr_err=165005)
svn: Unsupported repository version
svn: Expected version '1' of repository; found no version at all; is `file:///home/svn/linkdata' a valid repository path?
subversion/libsvn_subr/io.c:1735: (apr_err=2)
svn: No such file or directory
svn: svn_io_file_open: can't open `file:///home/svn/linkdata/format'

Ok, I'm a total newbie to svn, so likely am I missing something. But what?
The svn is revision 4113. Latest apr and apr-util (cvs snapshots as of 2002-12-21).
httpd-2.0.43.

/Johan



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Patch to allow svnadmin to noisily accept file:// prefix

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On Sunday, December 22, 2002, at 11:35 AM, Johan Lindh wrote:

> This small patch will allow svn maintainers to focus on the important 
> stuff, rather than
> answering newbies like me....
>

actually, this is probably closer to what we want, just in case someone 
tries to use another type of url...  and i'd be more inclined to just 
bail out and let them correct their mistake than to try to figure out 
what they meant.

-garrett


Patch to allow svnadmin to noisily accept file:// prefix

Posted by Johan Lindh <jo...@linkdata.se>.
This small patch will allow svn maintainers to focus on the important stuff, rather than
answering newbies like me....

[root@solid /home/joli/build/svn/subversion/svnadmin] svn diff
Index: main.c
===================================================================
--- main.c      (revision 4187)
+++ main.c      (working copy)
@@ -686,6 +686,12 @@
       if (os->ind < os->argc)
         {
           opt_state.repository_path = os->argv[os->ind++];
+          
+         if ( !strncmp ("file://", opt_state.repository_path, 7 ) )
+           {
+             fprintf (stderr, "svnadmin uses paths, not URLs, ignoring 'file://'\n");
+             opt_state.repository_path += 7;
+           }
 
           SVN_INT_ERR (svn_utf_cstring_to_utf8 (&(opt_state.repository_path),
                                                 opt_state.repository_path,







*********** REPLY SEPARATOR  ***********

On 2002-12-22 at 16:35 Johan Lindh wrote:

>Oooh... silly me.
>Perhaps it's in the FAQ, but I missed it?
>Hum... if it's the worlds most common mistake, perhaps there should be a
>check for it?
>5 minutes of programming to get rid of 5 hours of answering newbies like
>me? =)
>
>/J
>
>*********** REPLY SEPARATOR  ***********
>
>On 2002-12-22 at 09:38 Garrett Rooney wrote:
>
>>On Sunday, December 22, 2002, at 09:33 AM, Johan Lindh wrote:
>>> [joli@solid ~] svnadmin lstxns file:///home/svn/linkdata
>>> subversion/libsvn_repos/repos.c:795: (apr_err=165005)
>>> svn: Unsupported repository version
>>> svn: Expected version '1' of repository; found no version at all; is 
>>> `file:///home/svn/linkdata' a valid repository path?
>>> subversion/libsvn_subr/io.c:1735: (apr_err=2)
>>> svn: No such file or directory
>>> svn: svn_io_file_open: can't open `file:///home/svn/linkdata/format'
>>
>>ahh, it's the world's most common svnadmin problem...
>>
>>svnadmin takes a path, not a url.  try 'svnadmin lstxns 
>>/home/svn/linkdata' and see if that works (assuming /home/svn/linkdata 
>>is your repository).
>>
>>-garrett
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: dev-help@subversion.tigris.org




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Can't get svnadmin working -- but svn works ... what gives?

Posted by Johan Lindh <jo...@linkdata.se>.
Oooh... silly me.
Perhaps it's in the FAQ, but I missed it?
Hum... if it's the worlds most common mistake, perhaps there should be a check for it?
5 minutes of programming to get rid of 5 hours of answering newbies like me? =)

/J

*********** REPLY SEPARATOR  ***********

On 2002-12-22 at 09:38 Garrett Rooney wrote:

>On Sunday, December 22, 2002, at 09:33 AM, Johan Lindh wrote:
>> [joli@solid ~] svnadmin lstxns file:///home/svn/linkdata
>> subversion/libsvn_repos/repos.c:795: (apr_err=165005)
>> svn: Unsupported repository version
>> svn: Expected version '1' of repository; found no version at all; is 
>> `file:///home/svn/linkdata' a valid repository path?
>> subversion/libsvn_subr/io.c:1735: (apr_err=2)
>> svn: No such file or directory
>> svn: svn_io_file_open: can't open `file:///home/svn/linkdata/format'
>
>ahh, it's the world's most common svnadmin problem...
>
>svnadmin takes a path, not a url.  try 'svnadmin lstxns 
>/home/svn/linkdata' and see if that works (assuming /home/svn/linkdata 
>is your repository).
>
>-garrett




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Can't get svnadmin working -- but svn works ... what gives?

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On Sunday, December 22, 2002, at 09:33 AM, Johan Lindh wrote:
> [joli@solid ~] svnadmin lstxns file:///home/svn/linkdata
> subversion/libsvn_repos/repos.c:795: (apr_err=165005)
> svn: Unsupported repository version
> svn: Expected version '1' of repository; found no version at all; is 
> `file:///home/svn/linkdata' a valid repository path?
> subversion/libsvn_subr/io.c:1735: (apr_err=2)
> svn: No such file or directory
> svn: svn_io_file_open: can't open `file:///home/svn/linkdata/format'

ahh, it's the world's most common svnadmin problem...

svnadmin takes a path, not a url.  try 'svnadmin lstxns 
/home/svn/linkdata' and see if that works (assuming /home/svn/linkdata 
is your repository).

-garrett


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org