Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Force repository syncing after resource change

Hello,
After I make a change to a resource, I would like to automatically
deliver the change to the server. However the creation of a change-set
etc. happens in a separate job and is not available immediately after
changing the resource. Is there anyway to force the sync mechanism to
finish creating the change-set from a resource change?
Regards,
Sri.

0 votes



3 answers

Permanent link
Hello,
Ive been unsuccessful with various API to force a reconcile of local
workspace changes -
FileSystemResourcesPlugin.getComponentSyncModel().refresh(true, monitor);
FileSystemCore.getSharingManager().getLocalChangeManager().refreshChanges(sd.getConnectionHandle(),
sd.getComponent(), monitor);
FileSystemCore.getSharingManager().getLocalChangeManager().syncPendingChanges(sd.getConnectionHandle(),
sd.getComponent(), ResourcesPlugin.getWorkspace().getRoot().getFullPath());

Could someone dealing with local SCM changes please provide some
guidance as to how one can force resource changes to turn up in
change-sets synchronously.. currently it seems to be happening in the
background and there seems to be no way to find out when it finishes.
Regards,
Sri.



Srimanth Gunturi wrote:
Hello,
After I make a change to a resource, I would like to automatically
deliver the change to the server. However the creation of a change-set
etc. happens in a separate job and is not available immediately after
changing the resource. Is there anyway to force the sync mechanism to
finish creating the change-set from a resource change?
Regards,
Sri.

0 votes


Permanent link
On Thu, 01 Nov 2007 01:15:35 -0400, Srimanth Gunturi wrote:

Could someone dealing with local SCM changes please provide some
guidance as to how one can force resource changes to turn up in
change-sets synchronously..


call new EclipseWorkspaceCommitOperation(workspace, component, "comment",
null).run();

- Dmitry

0 votes


Permanent link
That has helped very much. Thank you for taking time to provide this
information.
Regards,
Sri.


Dmitry Karasik wrote:
On Thu, 01 Nov 2007 01:15:35 -0400, Srimanth Gunturi wrote:

Could someone dealing with local SCM changes please provide some
guidance as to how one can force resource changes to turn up in
change-sets synchronously..


call new EclipseWorkspaceCommitOperation(workspace, component, "comment",
null).run();

- Dmitry

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Oct 26 '07, 6:59 p.m.

Question was seen: 8,421 times

Last updated: Oct 26 '07, 6:59 p.m.

Confirmation Cancel Confirm