How to use LibreSource Synchronizer in command line
As LibreSource Synchronizer is a 100% pure java application, you can use it in command line.
First download the required jar :
Then you can launch LibreSource Synchronizer client with the following command :
The list of available commands will be displayed :
- commit : commit change to the queue
- update : update a workspace
- createworkspace : create a new workspace (file system)
- createqueue : create a new so6 queue (file system)
- rename : rename a file in an existing workspace
- findconflict : find conflicts in an existing workspace
- changetype : change the type of a file in an existing workspace
- computelocaltypes : restore files types
- restore : restore a corrupted workspace
- partialcommit : start a partial commit (not recommanded)
- addwsconnection : create a new connection between an existing workspace and an other queue
- conflicteditor : start the conflict editor
- applypatch : execute path operations on a workspace
- patchinspector : start the patch inspector
- synchronize : synchronize many workspace
- anonymousaccess : checkout
- clean : remove old merged operations
For each command, a specific help is displayed :
$> java -jar So6-1.0.jar commitcommit -w workspacepath [-c connection] "comment"
Exemple: so6 commit -w . "A little comment for the commit..."
so6 commit -w . -c 1 "A little comment for the commit..."
Thus, you can, as it is possible with other SCM tools, write scripts in shell to automated your actions on the local workspace.