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.
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.
3 answers
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:
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.
On Thu, 01 Nov 2007 01:15:35 -0400, Srimanth Gunturi wrote:
call new EclipseWorkspaceCommitOperation(workspace, component, "comment",
null).run();
- Dmitry
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
That has helped very much. Thank you for taking time to provide this
information.
Regards,
Sri.
Dmitry Karasik wrote:
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