Relative URLs on command line

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Relative URLs on command line

djcbecroft
Hi,
I'm trying to use the relative URL syntax from the command line, as mentioned in a 2009 blog post[1]. However, I'm having troubles getting it to work.
From inside a working copy for /branches/release:

> svn switch ^/trunk
svn: E125002: '/trunk' does not appear to be a URL

> svn merge -c 10000 ^/trunk .
svn: E155007: 'C:\trunk' is not a working copy

Everything works fine when using the full URLs, but I expected the relative paths to work.
Environment: Windows 10 64-bit, version 1.9.5-SlikSvn (SlikSvn/1.9.5)

Is this a *nix-only feature?
Cheers,
Daniel B.
Reply | Threaded
Open this post in threaded view
|

Re: Relative URLs on command line

Stefan Sperling
On Tue, Mar 21, 2017 at 12:25:25AM +0000, Daniel Becroft wrote:

> > svn switch ^/trunk
> svn: E125002: '/trunk' does not appear to be a URL
>
> > svn merge -c 10000 ^/trunk .
> svn: E155007: 'C:\trunk' is not a working copy
>
> Everything works fine when using the full URLs, but I expected the relative
> paths to work.
> Environment: Windows 10 64-bit, version 1.9.5-SlikSvn (SlikSvn/1.9.5)
>
> Is this a *nix-only feature?

In Windows cmd.exe ^ is a special character and must be escaped with itself.
So try again with: svn switch ^^/trunk