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

Re: Server side svn:auto-props, how to set it correctly?

From: Branko Čibej <brane_at_apache.org>
Date: Fri, 16 Feb 2018 10:20:05 +0100

On 16.02.2018 10:06, Bo Berglund wrote:
> On Fri, 16 Feb 2018 03:05:07 +0100, Branko ?ibej <brane_at_apache.org>
> wrote:
>
>>> How can I set the auto-props on the server itself
>> Not on the server, on the root of the repository, which is a directory.
> Thanks,
> I thought that the server root was controlled by a server conf file
> rather than it being some directory possible to check out.
> Is it also possible to put files in the root?

Of course, the root is just another directory in Subversion. Obviously
"directory in Subversion" is not the same as "directory on disk"; the
repository is essentially a database with a tree-like structure.

> When I used cvs2svn I had errors when there were files in the root of
> the CVS repo so I had to remove them. My understanding was that the
> top level stuff *had* to be directories rather than files....

No. That is probably a limitation of either CVS or cvs2svn.

>> For example:
>>
>> svn checkout ${REPOSITORY_ROOT_URL} ${WC_PATH} --depth empty
>> cd ${WC_PATH}
>> svn propset ${PROPERTY} ${VALUE}
>> svn commit -m "Commit message"
>>
>>
>> This will set a property on the repository root directory.
> Is this how it would work? :
>
> svn co https://server.svn.repo/ top --depth empty
> cd top
> svn propedit svn:auto-props ./
>
> editor pops up and I enter all of the lines like:
> *.c = svn:eol-style=native
> *.cpp = svn:eol-style=native
> ....
>
> when closing the editor the values are applied to the working copy
> directory itself?

Yes.

> svn commit -m "log message"
>
> I.e. can I specify the target as the current dir like shown above?

Yes.

-- Brane
Received on 2018-02-16 10:20:10 CET

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

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