You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Foad <ju...@btopenworld.com> on 2005/11/03 04:18:35 UTC
Re: Auto-subst of repository roots
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.
> 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?
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Auto-subst of repository roots
Posted by Branko Čibej <br...@xbc.nu>.
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