Hello,
On 06/04/15 01:44, svn_at_klammo.dk wrote:
> it might be due to my lack of expertise in the field of svn admin...
> but, i dont understand how to implement serverside dictated autoprops -
> the documentation doesnt talk to me, and i am lost...
>
> isnt there any hands on examples ?
The problem seems to be that you are looking for an answer in a
depth-first way. I assumed that the connection to other well documented
usage was made.
I had explained that the repository-dictated autoprops configuration is
implemented using versioned properties in the repository, and that the
property name is called "svn:auto-props" At this point, the
documentation on setting properties becomes relevant, which itself is no
longer special to repository-dictated configuration. See:
http://svnbook.red-bean.com/en/1.7/svn.advanced.props.html#svn.advanced.props.manip
Use propedit/propset on a suitable object inside your repository, like
"/" (root), "/trunk" or a path of your choice that fits your use case.
$ svn propedit svn:auto-props FOO
Here FOO is either local working copy path or a repository URL. If FOO
is a URL, the change will be committed as a revision immediately. If it
is a local working copy path, the change will be repository visible when
it is committed. This is also not special for repository-dictated
configuration but works the same for all versioned properties.
This then is how this may look when set, although the syntax is no
different from the runtime configuration previously known:
$ svn propget svn:auto-props https://svn.example.com/repo1/trunk
*.foo = svn:mime-type=image/foo
This will make any files matching *.foo be automatically added with the
svn:mime-type property set to image/foo by clients that are aware of
inherited properties. This is how this looks in a working copy:
$ touch testwc/empty.foo
$ svn add testwc/empty.foo
A (bin) testwc/empty.foo
"(bin)" indicates that a binary mime type (here: image/*) was
automatically added for the empty file. And indeed it is the made-up
mime type configured via auto-props:
$ svn propget svn:mime-type testwc/empty.foo
image/foo
Andreas
Received on 2015-04-06 13:00:30 CEST