Motivation
Inclusion and exclusion rules are handy when you want to build a custom branch explorer. They allow you to include or hide certain branches based on small queries.
Unfortunately, fixed rules such as "name='main'" or "name='LongTermFeature'" only work in a small number of scenarios. The key is to be able to use wildcards so the rule will affect a wider number of branches at once.
How to do it
The inclusion and exclusion rules system use the "cm find" query system; it supports wildcards at objects name and comments using the '%' symbol. Inside the "cm find" guide you will learn more about it: https://www.plasticscm.com/documentation/cmfind/plastic-scm-version-control-query-system-guide#Branches
The following rule will highlight in green all the branches matching the "scm" string at the start of the branch name:
name like 'scm%'
This is the result of the rule at the branch explorer: