You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Osipov, Michael" <mi...@siemens.com> on 2019/05/07 11:53:50 UTC
Same level externals not possible
Hi folks,
consider the following layout we need to solve for our legacy build:
.
|-- forms
|-- src
\-- inc
inc shall point to forms as external. Wenn doing "svn ps" with "forms
inc" or "./forms inc" I receive an error. Of course, according to the
help output [1] this is not possible. But why can't I have same level
externals? We currently apply the ugly workaround by creating 'inc' and
adding externals beneath that.
I am on Subversion 1.9.x, 1.10.x.
Shall I open a JIRA issue for that?
Michael
[1]
https://github.com/apache/subversion/blob/trunk/subversion/po/de.po#L16176-L16212
Re: Same level externals not possible
Posted by "Osipov, Michael" <mi...@siemens.com>.
Am 2019-05-07 um 14:49 schrieb Johan Corveleyn:
> On Tue, May 7, 2019 at 2:33 PM Osipov, Michael
> <mi...@siemens.com> wrote:
>>
>>
>>
>> Am 2019-05-07 um 14:20 schrieb Branko Čibej:
>>> On 07.05.2019 13:53, Osipov, Michael wrote:
>>>> Hi folks,
>>>>
>>>> consider the following layout we need to solve for our legacy build:
>>>>
>>>> .
>>>> |-- forms
>>>> |-- src
>>>> \-- inc
>>>>
>>>> inc shall point to forms as external. Wenn doing "svn ps" with "forms
>>>> inc" or "./forms inc" I receive an error.
>>>
>>> Just to clarify, you want this:
>>>
>>> $ svn propset svn:externals './forms inc' .
>>
>> Correct. Expanded it is:
>>
>> /di1234/trunk
>> |-- forms
>> |-- src
>> \-- inc
>
> Can't you use the following?
>
> $ svn propset svn:externals '../forms inc' .
This won't work because forms and inc have to be on the same level
otherwise it'd be trivial.
> or '../trunk/forms inc'
> (not sure)
We have considered that, but it won't work with branches. One would have
to change the extenal pointer back and forths, too errorprone.
Michael
Re: Same level externals not possible
Posted by Johan Corveleyn <jc...@gmail.com>.
On Tue, May 7, 2019 at 2:33 PM Osipov, Michael
<mi...@siemens.com> wrote:
>
>
>
> Am 2019-05-07 um 14:20 schrieb Branko Čibej:
> > On 07.05.2019 13:53, Osipov, Michael wrote:
> >> Hi folks,
> >>
> >> consider the following layout we need to solve for our legacy build:
> >>
> >> .
> >> |-- forms
> >> |-- src
> >> \-- inc
> >>
> >> inc shall point to forms as external. Wenn doing "svn ps" with "forms
> >> inc" or "./forms inc" I receive an error.
> >
> > Just to clarify, you want this:
> >
> > $ svn propset svn:externals './forms inc' .
>
> Correct. Expanded it is:
>
> /di1234/trunk
> |-- forms
> |-- src
> \-- inc
Can't you use the following?
$ svn propset svn:externals '../forms inc' .
or '../trunk/forms inc'
(not sure)
According to the book [1] '../' means "Relative to the URL of the
directory on which the svn:externals property is set"
[1] http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html
--
Johan
Re: Same level externals not possible
Posted by Branko Čibej <br...@apache.org>.
On 07.05.2019 15:19, Osipov, Michael wrote:
>
>
> Am 2019-05-07 um 14:57 schrieb Branko Čibej:
>> On 07.05.2019 14:25, Osipov, Michael wrote:
>>>
>>>
>>> Am 2019-05-07 um 14:20 schrieb Branko Čibej:
>>>> On 07.05.2019 13:53, Osipov, Michael wrote:
>>>>> Hi folks,
>>>>>
>>>>> consider the following layout we need to solve for our legacy build:
>>>>>
>>>>> .
>>>>> |-- forms
>>>>> |-- src
>>>>> \-- inc
>>>>>
>>>>> inc shall point to forms as external. Wenn doing "svn ps" with "forms
>>>>> inc" or "./forms inc" I receive an error.
>>>>
>>>> Just to clarify, you want this:
>>>>
>>>> $ svn propset svn:externals './forms inc' .
>>>
>>> Correct. Expanded it is:
>>>
>>> /di1234/trunk
>>> |-- forms
>>> |-- src
>>> \-- inc
>>>
>>>> that is, on the parent directory of 'forms'?
>>>>
>>>>> Of course, according to the help output [1] this is not possible. But
>>>>> why can't I have same level externals? We currently apply the ugly
>>>>> workaround by creating 'inc' and adding externals beneath that.
>>>>
>>>> The reason you can't do that is that if we allowed the syntax you're
>>>> proposing, it will conflict with the old, pre-1.5 svn:externals
>>>> format,
>>>> where the first parameter was the external name and the second was the
>>>> full URL.
>>>
>>> I'd be happy if this compat-mode could be turned off via compile time
>>> option to make the case work as expected. I don't know how much effort
>>> that is since I don't know the Subversion codebase.
>>
>> Well, I would be quite unhappy with that because then every time someone
>> reported a problem with externals, we'd have to ask how they compiled
>> their client ... and the answer would probably be "I don't know."
>>
>> One simply doesn't design features that way. :)
>
> Fair enough ;-)
>
> Any chances that this will go way with the next LTS release? 1.5 is
> really really old...
We promise backward compatibility across 1.x, so not likely.
>> If your clients are UNIX-ish machines, you can commit 'inc' as a symlink
>> to 'forms'. Or creating the link (even on Windows) could be part of a
>> script that prepares the working copy for your legacy build.
>
> The software runs on HP-UX only, so yes we have real UNIX. We have
> also considered symlinks, but wanted actually the portable --
> Subversion -- way.
Understood. If you can come up with a syntax for what you want that is
backwards-compatible and unambiguous, feel free to write up a proposal
and send it to the dev@ list. For reference, what we currently support
is documented here:
http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html
-- Brane
Re: Same level externals not possible
Posted by Nathan Hartman <ha...@gmail.com>.
On Tue, May 7, 2019 at 9:19 AM Osipov, Michael <mi...@siemens.com>
wrote:
> Any chances that this will go way with the next LTS release? 1.5 is
> really really old...
The problem with that idea is that repositories in use today that contain
pre-1.5-style externals will stop working.
Re: Same level externals not possible
Posted by "Osipov, Michael" <mi...@siemens.com>.
Am 2019-05-07 um 14:57 schrieb Branko Čibej:
> On 07.05.2019 14:25, Osipov, Michael wrote:
>>
>>
>> Am 2019-05-07 um 14:20 schrieb Branko Čibej:
>>> On 07.05.2019 13:53, Osipov, Michael wrote:
>>>> Hi folks,
>>>>
>>>> consider the following layout we need to solve for our legacy build:
>>>>
>>>> .
>>>> |-- forms
>>>> |-- src
>>>> \-- inc
>>>>
>>>> inc shall point to forms as external. Wenn doing "svn ps" with "forms
>>>> inc" or "./forms inc" I receive an error.
>>>
>>> Just to clarify, you want this:
>>>
>>> $ svn propset svn:externals './forms inc' .
>>
>> Correct. Expanded it is:
>>
>> /di1234/trunk
>> |-- forms
>> |-- src
>> \-- inc
>>
>>> that is, on the parent directory of 'forms'?
>>>
>>>> Of course, according to the help output [1] this is not possible. But
>>>> why can't I have same level externals? We currently apply the ugly
>>>> workaround by creating 'inc' and adding externals beneath that.
>>>
>>> The reason you can't do that is that if we allowed the syntax you're
>>> proposing, it will conflict with the old, pre-1.5 svn:externals format,
>>> where the first parameter was the external name and the second was the
>>> full URL.
>>
>> I'd be happy if this compat-mode could be turned off via compile time
>> option to make the case work as expected. I don't know how much effort
>> that is since I don't know the Subversion codebase.
>
> Well, I would be quite unhappy with that because then every time someone
> reported a problem with externals, we'd have to ask how they compiled
> their client ... and the answer would probably be "I don't know."
>
> One simply doesn't design features that way. :)
Fair enough ;-)
Any chances that this will go way with the next LTS release? 1.5 is
really really old...
> If your clients are UNIX-ish machines, you can commit 'inc' as a symlink
> to 'forms'. Or creating the link (even on Windows) could be part of a
> script that prepares the working copy for your legacy build.
The software runs on HP-UX only, so yes we have real UNIX. We have also
considered symlinks, but wanted actually the portable -- Subversion -- way.
Michael
Re: Same level externals not possible
Posted by Branko Čibej <br...@apache.org>.
On 07.05.2019 14:25, Osipov, Michael wrote:
>
>
> Am 2019-05-07 um 14:20 schrieb Branko Čibej:
>> On 07.05.2019 13:53, Osipov, Michael wrote:
>>> Hi folks,
>>>
>>> consider the following layout we need to solve for our legacy build:
>>>
>>> .
>>> |-- forms
>>> |-- src
>>> \-- inc
>>>
>>> inc shall point to forms as external. Wenn doing "svn ps" with "forms
>>> inc" or "./forms inc" I receive an error.
>>
>> Just to clarify, you want this:
>>
>> $ svn propset svn:externals './forms inc' .
>
> Correct. Expanded it is:
>
> /di1234/trunk
> |-- forms
> |-- src
> \-- inc
>
>> that is, on the parent directory of 'forms'?
>>
>>> Of course, according to the help output [1] this is not possible. But
>>> why can't I have same level externals? We currently apply the ugly
>>> workaround by creating 'inc' and adding externals beneath that.
>>
>> The reason you can't do that is that if we allowed the syntax you're
>> proposing, it will conflict with the old, pre-1.5 svn:externals format,
>> where the first parameter was the external name and the second was the
>> full URL.
>
> I'd be happy if this compat-mode could be turned off via compile time
> option to make the case work as expected. I don't know how much effort
> that is since I don't know the Subversion codebase.
Well, I would be quite unhappy with that because then every time someone
reported a problem with externals, we'd have to ask how they compiled
their client ... and the answer would probably be "I don't know."
One simply doesn't design features that way. :)
If your clients are UNIX-ish machines, you can commit 'inc' as a symlink
to 'forms'. Or creating the link (even on Windows) could be part of a
script that prepares the working copy for your legacy build.
-- Brane
Re: Same level externals not possible
Posted by "Osipov, Michael" <mi...@siemens.com>.
Am 2019-05-07 um 14:20 schrieb Branko Čibej:
> On 07.05.2019 13:53, Osipov, Michael wrote:
>> Hi folks,
>>
>> consider the following layout we need to solve for our legacy build:
>>
>> .
>> |-- forms
>> |-- src
>> \-- inc
>>
>> inc shall point to forms as external. Wenn doing "svn ps" with "forms
>> inc" or "./forms inc" I receive an error.
>
> Just to clarify, you want this:
>
> $ svn propset svn:externals './forms inc' .
Correct. Expanded it is:
/di1234/trunk
|-- forms
|-- src
\-- inc
> that is, on the parent directory of 'forms'?
>
>> Of course, according to the help output [1] this is not possible. But
>> why can't I have same level externals? We currently apply the ugly
>> workaround by creating 'inc' and adding externals beneath that.
>
> The reason you can't do that is that if we allowed the syntax you're
> proposing, it will conflict with the old, pre-1.5 svn:externals format,
> where the first parameter was the external name and the second was the
> full URL.
I'd be happy if this compat-mode could be turned off via compile time
option to make the case work as expected. I don't know how much effort
that is since I don't know the Subversion codebase.
Michael
Re: Same level externals not possible
Posted by Branko Čibej <br...@apache.org>.
On 07.05.2019 13:53, Osipov, Michael wrote:
> Hi folks,
>
> consider the following layout we need to solve for our legacy build:
>
> .
> |-- forms
> |-- src
> \-- inc
>
> inc shall point to forms as external. Wenn doing "svn ps" with "forms
> inc" or "./forms inc" I receive an error.
Just to clarify, you want this:
$ svn propset svn:externals './forms inc' .
that is, on the parent directory of 'forms'?
> Of course, according to the help output [1] this is not possible. But
> why can't I have same level externals? We currently apply the ugly
> workaround by creating 'inc' and adding externals beneath that.
The reason you can't do that is that if we allowed the syntax you're
proposing, it will conflict with the old, pre-1.5 svn:externals format,
where the first parameter was the external name and the second was the
full URL.
-- Brane