On Fri, Oct 8, 2010 at 2:35 PM, Karl Heinz Marbaise <khmarba...@gmx.de> wrote:
> Hi Tino,
>
>>>     svn cp ^^/trunk ^^/tags/RELEASE-1.0.0 -m"- Tagging"
>>>
>>> The usage of the doubled ^ is just as an example, cause i know
>>> on Windows you already have to type the doubled ^ because of the shell.
>>
>> So what should ^^ (or however it turns out) mean, exactly?
>
> It was just an example how it might look like....
>
>>
>> I always wanted something like "repository path of current working copy"
>> - is that what you mean?
>
> No...the repository path can be seen if you do an svn info in your wc.
>
>> Maybe ^: could be used as the anchor for
>>
>> "repository path of current working copy", if you are in a copy of
>> /some/path/to/project/branch/whatever you might use
>>
>>   svn cp ^: ^:../../tags/newtag
>>
>> to copy that path to /some/path/to/project/tags/newtag.
>>
>> Might be difficult to implement, I suppose but IANAD ;).
>
>
> Lets assume the following repository structure...to make my explanation more
> clear (Or may be i misunderstand yours?)...
>
>
> /
> +---- px
>       +--- py
>             +--- pz
>                   +--- trunk
>                   +--- tags
>                   +--- branches
>
>
> If you do a checkout from the above trunk you need to do the following to
> create a tag (svn 1.5, 1.6):
>
>    svn cp ^/px/py/pz/trunk ^/px/py/pz/tags/R1 -m"- Tag"
>
> So what a like to see is something like:
>
>    svn cp ^!/trunk ^!/tags/R1 -m"- Tag"

But how is svn supposed to know that you mean ^! to be expanded to
^/px/py/pz, and not to some other subfolder of the repository root,
say ^/px/py/pt?

AFAICS there is no context telling svn in which project you are
working (unless you mean that svn should deduce this from the working
copy you're in when executing that command).

-- 
Johan

Reply via email to