How to determine is file has been modified?
Hello,
I am trying to determine if a workspace resource has been modified, and needs to be delivered to the stream. Calling isLocallyModified() on the IShareable does not provide this information. How should one determine if a resource has been changed? Regards, Sri. |
One answer
See the ILocalChangeManager and the ISharingManager for hints. These will provide access to resources that have been modified but not checked-in.
Once checked-in, you can compare a repository workspace with a stream or another repo workspace and get the list of outgoing change-sets. There are many examples of this in the JUnits, search for callers of IWorkspaceConnect.deliver in the tests. |
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.