Appendix for View Manager Command Line Syntax
If specify simultaneously -brealkocks, -lockservers and -unlockservers options, its behavior is unsettled according to file lock status and/or merge action. The customer requested more detailed documentation than current admin.pdf - Chapter 8: Using View Manager, View Manger Command Line Syntax description like not recommended set of options and notice. Please see more details in the bellow Answer/Solution section.
Q: 1) If specify -lockserervers or -unlockservers without project and source/target view options, viewmgr output "the source and target objects are identical" message and server will be locked or unlocked.
[ACT]: Server will be locked
A: If the command line merge is used without the source and target specified the default source and target are the same view, so this behavior is by design. A better way to lock the StarTeam server is to use the client command:
This is documented in the StarTeam client User"s Guide. Chapter 22 using stcmd Command-Line.
Q: 2) If specify -lockservers, -unlockservers and -breaklocks options, server will be remained as locked.
[ACT]: Server remain as locked
A: These two switches are the opposite of one another and will cancel each other out -lockservers -unlockservers. This is by design. Borland suggest you to not use conflicting switches, decide whether the server should be locked or unlocked and then use that.
Really the server should be locked with one command and then later after the merge unlocked with a second command. Both -lockservers and -unlockservers should not be used at the same time.
Q: 3) If specify -breaklocks and -batch option and merge action is [Manual merge], source and target"s lock will be unlocked.
[ACT]: Source and Target view"s file lock will be unlocked.
A: The -breaklocks switch was designed to break all relevant locks.