Do you need to use the 'cm' tool with different configurations at the same PC and same system account?
It's possible to use different configurations for each 'cm' execution, it's done by using the following parameter: "-clientconf=".
What is the 'client.conf' file?
The 'client.conf' file is where the vital client configuration is stored. This file keeps the server you need to connect with, the user and password, merge tools and the Plastic SCM preferences.
The default configuration of the 'client.conf' file is the following one:
- Linux: /home/<user>/.plastic4/client.conf
- Windows: c:\Users\<user>\AppData\Local\plastic4\client.conf
- Mac: /Users/<user>/.plastic4/client.conf
You can create multiple 'client.conf" by configuring the Plastic SCM client once (clconfigureclient) and moving the generated file elsewhere, then repeat the process to generate another one.
Example
The following command will print the user configured based on the 'client.conf' configuration file.
> cm whoami -clientconf=/path/to/manuconf.conf
manu
> cm whoami -clientconf=/path/to/sheylaconf.conf
sheyla