Set Owner of Snapshot (baselineset) using Java APIs
Hi,
I'm trying to change the owner of a baselineset from a repository workspace to a stream programatically. It looks like you can set the name or comment of a snapshot pretty easily using:
IScmService#setBaseLineSetComment()
But there is not option to set the owner. The only thing I have found that looks remotely correct is:
IWorkspaceConnection#addBaseLineSet()
But this does not work and I'm not quite sure what this API does.
Any help is much appreciated!
Thanks
Accepted answer
IWorkspaceConnection#addBaseLineSet() is the right api to associate the snapshot to the workspace/stream. Once you do that listing the snapshots associated with the workspace/stream will list it.
Comments
1 vote