Understanding after state and before State of Changeset
Hello Team,
|
Accepted answer
I can answer about question 1.
before and after methods return an IVersionableHandle object: it is, basically, a version of a file under source control in RTC.
So, when you use before, you retrieve the the file as it was before the change; when you use after, you retrieve the file as it is after the change.
I suggest that you execute:
Integer changeKind = change.kind();
in order to get the kind of the change, i.e. whether the file has been added (changeKind=1), deleted (changeKind=16) or modified (changeKind=2) by the change.
When it has been added, you should only retrieve the after version; when it has been deleted, you should only retrieve the before version, when it has been modified, you can retrieve both before and after versions, according to your needs.
vinitha dsouza selected this answer as the correct answer
Comments
vinitha dsouza
commented Jun 15 '18, 1:39 a.m.
For other questions, answered here
|
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.