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 15:35:23 UTC

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

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: 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