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

API question: how to reliably determine which IFileItem is newest?

This is all from the RTC Java API perspective, not the GUI.

For most cases, it seemed to be pretty reliable to use IChangeSet.getLastChangeDate() timestamp to determine between two given IFileItem objects which one was "newer".  However, we recently stumbled upon a case where this is not true.

1. RTC allows an older changeset to be delivered after a newer one, even if the same part was changed in both and the older changeset has the newer version of the part (same UUID) without requiring any merges (this can happen where the newer changeset did a conflict Resolve that uses an older version of the part that the older changeset had already made additional changes to...e.g. newer changeset, delivered first, uses version ID 5, and older changeset delivered second has version ID 6 that was based on 5)

2. a newer changeset might have an older version ID (when Resolve With Proposed is used and the incoming/older part has a lower-numbered version ID than one I already have in a Completed changeset in my workspace)

How on earth does one reliably know, give two IFileItem objects and their associated IChange/IChangeSet objects, which is newer according to RTC's history?  Sometimes the changeset lastChangeDate tells you, sometimes the version ID does, but neither is reliable.

0 votes



One answer

Permanent link
bump (10 chars here)

0 votes

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,951

Question asked: Nov 10 '16, 3:25 p.m.

Question was seen: 1,696 times

Last updated: Nov 14 '16, 10:28 a.m.

Confirmation Cancel Confirm