RE: Error with quick-start experiment
From: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 28 May 2015 13:53:44 +0200
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_at_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 <file:///\\repos\my-repos\trunk> " ./
On Thu, May 28, 2015 at 1:10 PM, Bert Huijben <bert_at_qqmail.nl <mailto:bert_at_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_at_gmail.com <mailto:asimola78_at_gmail.com> ]
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> "
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.