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]
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> "
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> ]
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> "
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:
Can you please show exactly what you typed on the command line
>
Fixed, thanks.
|
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.