HomeGeneralSubmitting ChangesetsHow do I prevent files in certain directories being added

4.6. How do I prevent files in certain directories being added

If you want to prevent certain common temporary or other non-versionable files being added to a PureCM Workspace, you can use the 'Ignore File Paths' policy.

As an administrator, you can access this from the 'Policy Admin' node in the PureCM Client. In the 'Default Policyset' properties, there should already be or you can otherwise add the 'Ignore File Paths' policy. By default this is set to :-

*CVS/*;*.cvsignore;*.vsscc

Which means :-

  1. Ignore anything in a folder ending with CVS.
  2. Ignore any files that end with .cvsignore
  3. Ignore any files that end with .vsscc

If you, for example, you want to ignore all files in a folder beginning with a period (a Unix convention for hidden folders) you could change the policy value to :-

*CVS/*;*.cvsignore;*.vsscc;*/.*/*

After applying this policy it should apply to all user workspace after they next do an 'Update to Latest' (or create a new workspace). You could equally apply different settings to different repositories by creating a custom Policyset for each repository for example.

 

From PureCM 2009-2c onwards, users can automatically create a project specific ignore file path policy when adding a project to PureCM. Any file/folder that has been detected in a workspace location but hasn't been added to PureCM yet appears in red. To exclude this folder from being added or picked up as a change, right click on the folder and select 'Exclude':

 Exclude folder in workspace

This will change the colour of the folder and its content to grey, signalling that the folder is excluded from source control on purpose.

As an administrator, you can check the created policy from the same location as above. Note that it is stream or project specific, based on the stream the workspace was based on.

 Created ignore file path policy

As before, this policy it should apply to all user workspace after they next do an 'Update to Latest' (or create a new workspace). To add the folder at a later point in time, simply delete the policy.

 

This page was: Helpful | Not Helpful