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

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

From: Johan Lindh <johan_at_linkdata.se>
Date: 2002-12-22 17:35:49 CET

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_at_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
Received on Sun Dec 22 17:37:48 2002

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