Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC 6.0.4 discard changeset using java API

I'm trying to discard a changeset using the java API in a custom Eclipse plugin.

I can discard it using the method:

IWorkspaceConnection.discardChangesets(boolean preflight, List<IChangesetHandle> css)

    

But this method will also complete all changesets before discard. Does anyone know a way to discard a changeset programmatically without completing it?

Thanks,
/Morten

0 votes


Accepted answer

Permanent link

There is no way to discard a change set and have it remained open. This is because in order to 'accept' a change set, it must be closed. This way after discarding it, if you decide you want it back, you can always search for the change set and accept it into your repository workspace..

Morten Madsen selected this answer as the correct answer

0 votes

Comments

You are correct! I have actually never noticed this. I though when you discarded a change-set, then it was deleted for good. But it is actually just completed and is still there when you search for it (or use show history - all in repository). Even if the change-set is empty, it is still there.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 149
× 11

Question asked: Aug 15 '18, 12:15 p.m.

Question was seen: 1,885 times

Last updated: Aug 16 '18, 2:37 p.m.

Confirmation Cancel Confirm