You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Antti Simola <as...@gmail.com> on 2015/05/28 10:08:17 UTC
Error with quick-start experiment
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?
Antti Simola
PS: There’s a typo in quick-start guide as the first “ is missing from the
tags subdirectory address.
Re: Error with quick-start experiment
Posted by Stefan Sperling <st...@elego.de>.
On Thu, May 28, 2015 at 11:38:17AM +0200, Stefan Sperling wrote:
> The quick-start page is wrong.
I've fixed the page. Thanks!
Re: Error with quick-start experiment
Posted by Stefan Sperling <st...@elego.de>.
On Thu, May 28, 2015 at 12:19:17PM +0300, Antti Simola wrote:
> 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:///%REPOS_DIR%/branches" "file:///%REPOS_DIR%/tags"
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
>
> C:\>
This error message should be improved. svn should not assert here
but simply tell you that the URL is invalid.
The quick-start page is wrong.
You'll need to replace backslashes with forward slashes in the URL:
file:///h:/repos/my-repos/trunk etc.
I'm not seeing an assertion on BSD so perhaps the assertion problem
is specific to Windows. On BSD I see:
svn: E180001: Unable to connect to a repository at URL 'file:///h:%5Crepos%5Cmy-repos'
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository 'file:///h:%5Crepos%5Cmy-repos'
RE: Error with quick-start experiment
Posted by Bert Huijben <be...@qqmail.nl>.
That is not strictly typo, but I already committed a change to that line before I wrote my previous mail (r1682198).
The current form specifies a root relative path on Windows ( \repos ), which would work while your current drive is ‘C:’ but stops working when you switch the active drive.
Bert
From: Antti Simola [mailto:asimola78@gmail.com]
Sent: donderdag 28 mei 2015 12:49
To: Bert Huijben
Cc: users@subversion.apache.org
Subject: Re: Error with quick-start experiment
Thanks! I got it working now by following the updated quick-start. There's perhaps one typo remaining as the drive is missing from this address:
> svn checkout "file:///repos/my-repos/trunk <file:///\\repos\my-repos\trunk> " ./
On Thu, May 28, 2015 at 1:10 PM, Bert Huijben <bert@qqmail.nl <ma...@qqmail.nl> > wrote:
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:///%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> "
But it might be easier to just set the properly encoded path in REPOS_DIR
From: Antti Simola [mailto:asimola78@gmail.com <ma...@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@qqmail.nl <ma...@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@gmail.com <ma...@gmail.com> ]
Sent: donderdag 28 mei 2015 11:19
To: Antti Simola; users@subversion.apache.org <ma...@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@elego.de <ma...@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.
Re: Error with quick-start experiment
Posted by Antti Simola <as...@gmail.com>.
Thanks! I got it working now by following the updated quick-start. There's
perhaps one typo remaining as the drive is missing from this address:
> svn checkout "file:///repos/my-repos/trunk" ./
On Thu, May 28, 2015 at 1:10 PM, Bert Huijben <be...@qqmail.nl> wrote:
> If you want to use URL operations, the whole url should use ‘/’
> separators. It now tries to open the local directory 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:///%REPOS_DIR:\=/%/trunk" "file:///%REPOS_DIR:\=/%\branches" "
> file:///%REPOS_DIR:\=/%\tags"
>
>
>
> But it might be easier to just set the properly encoded path in REPOS_DIR
>
>
>
>
>
> *From:* Antti Simola [mailto:asimola78@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:\\\%REPOS_DIR%\branches" "file:\\\%REPOS_DIR%\tags"
> svn: E020024: Error resolving case of 'file:\\\h:\repos\my-repos\trunk'
>
>
>
> On Thu, May 28, 2015 at 12:51 PM, Bert Huijben <be...@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@gmail.com]
> *Sent:* donderdag 28 mei 2015 11:19
> *To:* Antti Simola; users@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:///%REPOS_DIR%/branches" "file:///%REPOS_DIR%/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 <st...@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.
>
>
>
>
>
RE: Error with quick-start experiment
Posted by Bert Huijben <be...@qqmail.nl>.
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@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@qqmail.nl <ma...@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@gmail.com <ma...@gmail.com> ]
Sent: donderdag 28 mei 2015 11:19
To: Antti Simola; users@subversion.apache.org <ma...@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@elego.de <ma...@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.
RE: Error with quick-start experiment
Posted by Bert Huijben <be...@qqmail.nl>.
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@gmail.com]
Sent: donderdag 28 mei 2015 11:19
To: Antti Simola; users@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@elego.de <ma...@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.
Re: Error with quick-start experiment
Posted by Antti Simola <as...@gmail.com>.
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:///%REPOS_DIR%/branches" "file:///%REPOS_DIR%/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 <st...@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.
>
Re: Error with quick-start experiment
Posted by Stefan Sperling <st...@elego.de>.
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.