[closed] Changesets - Find/Deliver programatically [Plain Java API]
Hi All,
I have changesets shared across multiple streams. I need to find whether a changeset exists in the Repository and deliver the existing across streams. If it doesnt exist, create a new changeset.
1. How to get the id of a changeset and use it in a find query?
2. How to deliver selective changesets from the repository to a particular stream
Please advise. Thanks.
I have changesets shared across multiple streams. I need to find whether a changeset exists in the Repository and deliver the existing across streams. If it doesnt exist, create a new changeset.
1. How to get the id of a changeset and use it in a find query?
2. How to deliver selective changesets from the repository to a particular stream
Please advise. Thanks.
The question has been closed for the following reason: "The question is answered, right answer was accepted" by valli Jun 08 '15, 8:12 a.m.
3 answers
I think you would be better off to use the commandline. the API for SCM is not simple. This is an object oriented system.
Comments
showing 5 of 9
show 4 more comments
Thanks Geoff. Actually i checked-in 1 file multiple times with the same changeset, it looks like its committing the changes onto the same version. I used the below API command for file checkin to the changeset:
fWorkspace.commit(fChangeSet,Collections.singletonList(fWorkspace.configurationOpFactory()
.save(fileWorkingCopy)), fMonitor);
When i view the File-history or at the changeset level, i see only 1 version of it, even though i have done 2 commit-actions with 2 different contents.
fWorkspace.commit(fChangeSet,Collections.singletonList(fWorkspace.configurationOpFactory()
.save(fileWorkingCopy)), fMonitor);
When i view the File-history or at the changeset level, i see only 1 version of it, even though i have done 2 commit-actions with 2 different contents.
Comments
1 vote
showing 5 of 7
show 2 more comments
I have explained the API to some extend in Extracting an Archive Into Jazz SCM Using the Plain Java Client Libraries