Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which folder properties are inherited

For our project we have certain svn properties that should be applied to all folders in the repo. For instance the bugtraq:xxx, and the svn:ignore properties.

And when creating and adding a new folder to the repo the bugtraq:xxx properties are applied to the new folder, but the svn:ignore are not...

Why?

Edit So I'm adding a tree example:

[Root]
   |-- Admin [no props]
   |-- Software [no props]
         |-- MySoftwareProject [B (=Bugtraq)]
               |-- tags [B]
               |-- branches [B]
               |-- trunk [B]
                     |-- Folder_A [B & I (=Ignore)]
                     |-- Folder_B [B & I]
                           |-- New_Folder_C [B]

Ok, so when I create & add the New_Folder_C it automatically gets Bugtraq but not svn:ignore

like image 257
Markus Avatar asked Feb 28 '13 15:02

Markus


1 Answers

New for Subversion 1.8 Client

There's are two new standard properties in Subversion 1.8 clients:

  • svn:global-ignores
  • svn:auto-props

These properties are inheritable. That is, when you set one of these properties on a parent directory, it applies to all sub-directories too. This allows you to create a new way of setting auto properties and project wide global-ignores.

This will take care of your problem. However, you must make sure that everyone is using the latest version of TortoiseSVN in order to take advantage of this.

I also recommend you use my pre-commit hook which can enforce the use of properties on files and directories. This hook will reject comments unless the properties are correctly set on all files added or modified in the commit.

like image 99
David W. Avatar answered Oct 05 '22 08:10

David W.