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.
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?


One answer

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

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.