You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gunter Ohrner <G....@post.rwth-aachen.de> on 2006/01/04 10:13:15 UTC

per-repository auto-props?

Hi!

Is there any way to assign something like "auto-props" to a repository /
subdirectory instead of a client's subversion config?

Some properties like svn:ignore contain quite a few project-specific parts
which I a) don't want to set manually on all related clients if it can be
avoided and b) which should only influence a subset of this client's
working copies.

If this isn't possible, a (much less elegant) work around would be to create
separate config files for these repositories. If this would be neccessary,
is there any way to associate a specific config file with a working copy?
And does svn's config support some kind of "include" directive so I can
define common options in a single place?

Greetings,

  Gunter


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: per-repository auto-props?

Posted by Gunter Ohrner <G....@post.rwth-aachen.de>.
Ryan Schmidt wrote:
>>> Is there any way to assign something like "auto-props" to a
>>> repository /
>>> subdirectory instead of a client's subversion config?
>> repository or even subdirectory-tree specific "global-ignores".

> Directory-specific "global-ignores" is what the svn:ignore property
> is for.

Mh, well, that's per-directory-ignores. I was looking for an way to set an
ignore with at least a recursive effect for all directories (even
not-yet-created) below. So this feature doesn't seem to exist yet... :-(

> it sounds like you want an automatic way to set svn:ignore on a large
> or frequently-changing set of directories;

Right. Or at least for a way to "apply" these ignores to a subtree without
even setting them everywhere recursively, like global-ignores do. (Hence my
unlucky comparison above.)

> I'm not aware of a built-in way to do that.

Recursively setting the properties is no problem, but remembering to
actually set them and keep them up-to-date is painful and error
prone... :-(

> Another problem in your case is that auto-props only works on files,

Uh, I didn't even think of that. So there's no way to automagically attach
ignores to new files/directories yet, besides custom configuration files
which do not actually put the ignores where I want them to be... :-(

>>> is there any way to associate a specific config file with a
>>> working copy?
> There is the --config-dir argument to svn. From the help pages: (...)
> However, you would have to give the argument every time you call the
> svn program when you want to use that config directory. There's no

I know this switch, but using it manually is also clumsy and error prone...

> way to associate a config file with a given working copy or repository.

:-(

>>> And does svn's config support some kind of "include" directive so
>>> I can define common options in a single place?
> I'm not aware of any such mechanism.

Ok, so the summary is that there's currently no way to achieve what I want
and I'll have to stick to mainting these properties using scripts and a lot
of discipline... ;)

These would be nice features to have, and at least from the outside they
don't sound too complicated, as it'd be client-only features. I guess I'll
open wishlist-items for these.

Thanks a lot for your help,

  Gunter


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: per-repository auto-props?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 4, 2006, at 11:19, Gunter Ohrner wrote:

> On Jan 4, 2006, at 11:13, Gunter Ohrner wrote:
>
>> Is there any way to assign something like "auto-props" to a  
>> repository /
>> subdirectory instead of a client's subversion config?
>>
>> Some properties like svn:ignore contain quite a few project- 
>> specific parts
>> which I a) don't want to set manually on all related clients if it  
>> can be
>> avoided and b) which should only influence a subset of this client's
>> working copies.
>
> Also nice for similar reasons as stated above would eg. be
>
> repository or even subdirectory-tree specific "global-ignores".

Directory-specific "global-ignores" is what the svn:ignore property  
is for. You set it on the directories where you want it to apply. But  
it sounds like you want an automatic way to set svn:ignore on a large  
or frequently-changing set of directories; I'm not aware of a built- 
in way to do that. TortoiseSVN, for comparison, has a way to  
recursively set properties, but as soon as you add new directories,  
they of course won't have the property set.

Another problem in your case is that auto-props only works on files,  
but svn:ignore is something that needs to be set on directories, so  
auto-props doesn't work for that purpose. See this bug:

http://subversion.tigris.org/issues/show_bug.cgi?id=1989


>> If this isn't possible, a (much less elegant) work around would be  
>> to create
>> separate config files for these repositories. If this would be  
>> neccessary,
>> is there any way to associate a specific config file with a  
>> working copy?

There is the --config-dir argument to svn. From the help pages:

   --config-dir arg         : read user configuration files from  
directory ARG

However, you would have to give the argument every time you call the  
svn program when you want to use that config directory. There's no  
way to associate a config file with a given working copy or repository.


>> And does svn's config support some kind of "include" directive so  
>> I can
>> define common options in a single place?

I'm not aware of any such mechanism.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: per-repository auto-props?

Posted by Gunter Ohrner <G....@post.rwth-aachen.de>.
Gunter Ohrner wrote:
> Is there any way to assign something like "auto-props" to a repository /
> subdirectory instead of a client's subversion config?

Also nice for similar reasons as stated above would eg. be

repository or even subdirectory-tree specific "global-ignores".

Does something like this exists?

Greetings,

  Gunter


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org