subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <>
Subject Re: Server side svn:auto-props, how to set it correctly?
Date Fri, 16 Feb 2018 09:20:05 GMT
On 16.02.2018 10:06, Bo Berglund wrote:
> On Fri, 16 Feb 2018 03:05:07 +0100, Branko ?ibej <>
> 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?


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


-- Brane

View raw message