What folder properties are inherited

For our project, we have certain svn properties that should be applied to all folders in the repo. For example, the bugtraq:xxx and 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 svn:ignore does not ...

Why?

Edit Therefore, I am 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] 

So when I create and add New_Folder_C , it automatically gets Bugtraq , but not svn:ignore

+4
source share
3 answers

New for Subversion 1.8 Client

Subversion 1.8 clients have two new standard features:

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

These properties are inherited. That is, when you set one of these properties in the parent directory, it applies to all subdirectories. This allows you to create a new way to set auto properties and global global ignore projects.

This will take care of your problem. However, you must ensure that everyone uses the latest version of TortoiseSVN to take advantage of this.

I also recommend using my pre-commit hook , which can ensure the use of properties in files and directories. This hook will reject comments if the properties are not correctly configured for all files added or changed in the commit.

+6
source

In Subversion, properties are never inherited. You can click the “Apply property recursively” checkbox when setting the properties, and TortoiseSVN will automatically make a copy of the property in each downstream folder, but this is just a time saving feature that the Subversion client offers.

The bugtraq: family of properties bugtraq: is a custom feature implemented by the TortoiseSVN and Subclipse development teams . What happens is that TortoiseSVN uses the bugtracker function as soon as it detects these tags in the root folder of your working copy - there is no need to have a property in each folder.

This does not apply to svn:ignore , because it is a standard feature of Subversion and how it should behave.

+3
source

TortoiseSVN probably uses an SVN function called auto requisites . You can also see about them here in the TortoiseSVN documentation, as there are also special tsvn:autoprops .

+2
source

All Articles