[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-dev] Post merge refresh.

From: Alexander Kitaev <alex_at_tmate.org>
Date: 2006-03-28 19:17:14 CEST

Hello All,

After merge operation is completed Subclipse spends a lot of time performing
some additional actions. I suspect it refreshes the whole project - even
when single file is changed during merge post merge takes a lot of time.

I took a look at MergeCommand class:

            ISVNClientAdapter svnClient =
root.getRepository().getSVNClient();
            OperationManager.getInstance().beginOperation(svnClient);
            monitor.subTask(resource.getName());
            File file = resource.getLocation().toFile();
            svnClient.merge(svnUrl1, svnRevision1, svnUrl2, svnRevision2,
file, false, true);
            try {
                // Refresh the resource after merge
                resource.refreshLocal(IResource.DEPTH_INFINITE, new
NullProgressMonitor());
            } catch (CoreException e1) {
            }

And it looks that whole project is refreshed after merge. Is that possible
to use the same refresh code that is used for commit or update after merge
as well?

Alexander Kitaev,
TMate Software,
http://tmate.org/
http://jetbrains.com/tmate/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Tue Mar 28 19:17:20 2006

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.