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

Re: [PATCH] Repository root relative support for the command-line client

From: Daniel Shahaf <d.s_at_daniel.shahaf.co.il>
Date: Tue, 29 Apr 2008 19:13:07 +0300 (IDT)

Troy Curtis Jr wrote on Tue, 29 Apr 2008 at 10:50 -0500:
> On Tue, Apr 29, 2008 at 10:33 AM, Daniel Shahaf <d.s_at_daniel.shahaf.co.il> wrote:
> > Troy, is the syntax/semantics of ^ URLs documented anywhere? I didn't
> > find anything obvious in the log message.
> >
> From the log message:
> "...This allows the user to use '^/' in front of any target to mean
> the repository root url...."
> I wrote this to mean that the repository root url syntax is "^/" not
> "^". Of course you do have to read into it a bit to get that. Julian
> mentioned that eventually this syntax would likely be documented in
> the svnbook and I guess we should explicitly mention the bare
> repository root case.

Okay, that's the syntax: leading "^/" is magic. And the semantics?
For example:

        0:~% cd ~
        0:~% svn info '^/' src/svn/trunk | grep URL
        URL: https://svn.collab.net/repos/svn
        URL: https://svn.collab.net/repos/svn/trunk
        0:~% svn info '^/' |grep URL
        subversion/libsvn_wc/lock.c:871: (apr_err=155007)
        svn: '.' is not a working copy

Without diving into your discussions with Julian and/or the log
messages, it is not obvious to me what's going on here. Especially not
clear to me is how adding an argument changes the meaning of previous
arguments. The ^ syntax is also dependent on the current directory, which
probably leads to more surprises.

Perhaps you could prepare a short summary of the ^ magic syntax? There
is no obvious place for it in 'svn help', but I think a file in notes/
is acceptable for now; that file can be used as reference when the
feature is documented in the book.



To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-29 18:14:11 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.