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

Re: Auto-subst of repository roots

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-11-03 06:50:08 CET

Julian Foad wrote:
> Branko Čibej wrote:
>> Julian Foad wrote:
>>
>>> Of course, the syntax doesn't have to be a prefix string. It could,
>>> for example, be parsed like an option, e.g. "--in-repo /trunk/foo",
>>> or implied by the command, e.g. "svn repo-diff /trunk/foo
>>> /branches/foo".
>>
>> Yuck.
>
> Those ideas may well be yuck; I just wanted to point out that other
> ways exist.
The point of this proposal is to simplify the command-line syntax to
make branch management (specifically: diff, switch and merge) easier. In
that light, "--in-repo" certainly falls down when compared to "%".

>> If we do introduce a magic prefix that expands to the repos root,
>> then the libsvn_client functions should accept the syntax. Therefor
>> it can't be a command-line option.
>
> Why should the libsvn_client functions accept it?
So that you can use it in scripts and other clients. I suppose we could
add a svn_client_expand_url function and have clients call that, but
since all the libsvn_client functions already know which paths could be
URLs, and we already have code to check URLs, it should be no problem to
add support for this. Note that this is not the same as path
canonicalisation; we can simply declare that %/foo is a canonical URL as
far as SVn is concerned, and DTRT in the presence of a working copy.

Without a working copy, the shortcut is nonsense anyway.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 3 06:48:48 2005

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.