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

Re: How do I use "^" in command-line paths?

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 7 May 2010 16:20:07 +0200

On Fri, May 07, 2010 at 07:07:41AM -0700, tstone-barcard wrote:
> The SVN Book uses a path syntax throughout the narrative that prefixes
> a "^". I'm continually baffled by the use of "^" in the svn-book
> (http://svnbook.red-bean.com) because I cannot get it to work.
>
> What is this shortcut? When does it work? Does it need to be set?

"^/" expands to the value of the repository root.
svn info prints the repository root as well -- that URL is
what will be used:

$ svn info | grep Root
Repository Root: file:///tmp/svn-sandbox/repos
$ svn ls file:///tmp/svn-sandbox/repos
branch/
trunk/
$ svn ls ^/
branch/
trunk/

> I've tried using it, but it never works (v1.6.3).

It should just work on Linux/Mac.

On windows, ^ is a special character for the cmd shell,
so you must escape it: use ^^/ instead of ^/

Stefan
Received on 2010-05-07 16:20:42 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.