understanding Afterstate and before for Merge Scenarios
Dear Team,
- We have Merge scenario where a File A is Modified in Workspace A and same File A is deleted in another Workspace B like mentioned in url: https://jazz.net/forum/questions/41298/understanding-an-ichange
For this VersionHandle is Null both for after state and before state. I Use RTC API but i pasting the XML Content on respective Changeset,
<changes><internalId>_bdu4MTYnEee4-awF8FM7vw</internalId><kind>0</kind><before xsi:nil="true"/><after xsi:nil="true"/><item itemId="_vuVo8OkrEeapv92fnweYFw" xsi:type="filesystem:FileItemHandle"/><merges><internalId>_bdu4MjYnEee4-awF8FM7vw</internalId><state>_LqAs6ekwEeaC67b_5u2DUQ</state><kind>16</kind></merges></changes>
Queries: Why kind of Change- 0?
If we are doing a sync tool from one SCM TO other/legacy system, what is correct way of handling for merge scenarios,
Based on the Kind go ahead and do modify in legacy system or i have consider the Merge Changes related kind and handle?
Accepted answer
A kind value of 0 (or "NONE") is a constant indicating the change has equivalent 'before' and 'after' states.