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

RE: Error with quick-start experiment

From: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 28 May 2015 12:10:29 +0200

If you want to use URL operations, the whole url should use ‘/’ separators. It now tries to open the local directory file:\\....something <file:///\\....something> , which certainly won’t exist because file: is not a valid device specifier on Windows.

 

You want to use something like

$ svn mkdir -m "Create directory structure." " <file:///\\%25REPOS_DIR:\=\%25\trunk> file:///%REPOS_DIR:\=/%/trunk" " <file:///\\%25REPOS_DIR:\=\%25\branches> file:///%REPOS_DIR:\=/%\branches" " <file:///\\%25REPOS_DIR:\=\%25\tags> file:///%REPOS_DIR:\=/%\tags"

 

But it might be easier to just set the properly encoded path in REPOS_DIR

 

 

From: Antti Simola [mailto:asimola78_at_gmail.com]
Sent: donderdag 28 mei 2015 11:55
To: Bert Huijben
Subject: Re: Error with quick-start experiment

 

Thanks! There's another error now with replaced slashes:

C:\>svn mkdir -m "Create directory structure." "file:\\\%REPOS_DIR%\trunk <file:///\\%25REPOS_DIR%25\trunk> " "file:\\\%REPOS_DIR%\branches <file:///\\%25REPOS_DIR%25\branches> " "file:\\\%REPOS_DIR%\tags <file:///\\%25REPOS_DIR%25\tags> "
svn: E020024: Error resolving case of 'file:\\\h:\repos\my-repos\trunk'

 

On Thu, May 28, 2015 at 12:51 PM, Bert Huijben <bert_at_qqmail.nl <mailto:bert_at_qqmail.nl> > wrote:

                Hi,

 

You could use %REPOS_DIR:\=/% instead of just %REPOS_DIR% to replace all ‘\’ characters with ‘/’

 

(In batch scripts you might have to enable cmd extensions, but on the commandline this is enabled by default)

 

                Bert

 

From: Antti Simola [mailto:asimola78_at_gmail.com <mailto:asimola78_at_gmail.com> ]
Sent: donderdag 28 mei 2015 11:19
To: Antti Simola; users_at_subversion.apache.org <mailto:users_at_subversion.apache.org>
Subject: Re: Error with quick-start experiment

 

This is what I typed in my last attempt. I've made several attempts after the one that worked earlier.

C:\>set REPOS_DIR=h:\repos\my-repos

C:\>mkdir h:\repos

C:\>svnadmin create %REPOS_DIR%

C:\>svn mkdir -m "Create directory structure." "file:///%REPOS_DIR%/trunk <file:///\\%25REPOS_DIR%25\trunk> " "file:///%REPOS_DIR%/branches <file:///\\%25REPOS_DIR%25\branches> " "file:///%REPOS_DIR%/tags <file:///\\%25REPOS_DIR%25\tags> "
svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line 2307: assertion failed (svn_uri_is_canonical(url, pool))

C:\>

 

On Thu, May 28, 2015 at 11:30 AM, Stefan Sperling <stsp_at_elego.de <mailto:stsp_at_elego.de> > wrote:

On Thu, May 28, 2015 at 11:08:17AM +0300, Antti Simola wrote:
> Hello,
>
>
>
> I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
> SLIKSVN) by reading the book online and doing some tests. I followed the
> quick-start guide for some experiments:
>
>
>
> https://subversion.apache.org/quick-start
>
>
>
> The first time around went spotless. But the second time when I wanted to
> create another repo for another project I get the following error message:
>
>
>
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
>
>
> when I execute the part that makes trunk, branches and tags
> subdirectories. That opens a dialog window for the error as well. Does
> anyone have any idea what I’m doing wrong here?
>

Can you please show exactly what you typed on the command line
when this happened?

>
>
> Antti Simola
>
>
>
>
>
> PS: There’s a typo in quick-start guide as the first “ is missing from the
> tags subdirectory address.

Fixed, thanks.

 

 
Received on 2015-05-28 12:10:49 CEST

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

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