In DesignSync, the 'switchlocker' command can be used to change the lock owner of a branch for a specified object (i.e. change the lock on a file from one user to another user). Running this command on a module member in a DesignSync workspace, requires a specific syntax to properly specify the object on which you may want to run 'switchlocker':
stcl> switchlocker -modulecontext
For example:
stcl> switchlocker -modulecontext sync://
Getting the parent module URL and module member natural path is possible via running 'vhistory' on the module member.
Because use of switchlocker for module members may not be the most intuitive operation, please consider using a simple utility script which defines a 'switchlockermember' command to simplify this operation. (See attached switchlockermember.tcl file for this script)
This client-side TCL script can be loaded into DesignSync directly (for quick testing) , via a DesignSync startup script or an auto-loaded TCL procedure. See the following SyncDocs topics for more information on this:
- Home > Programming Guides > STCL Programmer's Guide > The stcl Environment for Client Scripts > Setting Up stcl Client Scripts > Startup Scripts
- Home > Programming Guides > STCL Programmer's Guide > The stcl Environment for Client Scripts > Setting Up stcl Client Scripts > Autoloaded Site and Project stcl Procedures
When installed, the command syntax to use is:
stcl> switchlockermember
For example:
stcl> switchlockermember user1 schematic.sync.cds
Only the
Hopefully, you find this utility useful. Please let me know if you have any questions on its installation and use.
Tips and Tricks
