It's all about the answers!

Ask a question

How to determine is file has been modified?


Srimanth Gunturi (206125) | asked Oct 18 '07, 7:43 p.m.
JAZZ DEVELOPER
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



permanent link
Jean-Michel Lemieux (2.5k11) | answered Oct 18 '07, 9:01 p.m.
JAZZ DEVELOPER
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


Register or to post your answer.