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

RE: [Subclipse-dev] Post merge refresh.

From: Alexander Kitaev <alex_at_tmate.org>
Date: 2006-03-28 20:25:29 CEST

Hello Mark,

> I added this to Switch and Merge because there were
> scenarios, probably depending on what WC changes were made by
> the action, where things just did not refresh correctly and
> the decorators were not updated.
May be modifications made could be analyzed and only when such scenario is
matched, root resource should be refreshed and otherwise only those
resources that were affected by merge?

> Technically it refreshes the resource you selected when you
> took the option. I realize in most cases this means the
> whole project.
Yes, that how it works for me - I'm merging a single file and then wait for
several minutes for the whole project to be refreshed.

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

> -----Original Message-----
> From: Mark Phippard [mailto:markp@softlanding.com]
> Sent: Tuesday, March 28, 2006 20:18
> To: dev@subclipse.tigris.org
> Subject: Re: [Subclipse-dev] Post merge refresh.
>
> "Alexander Kitaev" <alex@tmate.org> wrote on 03/28/2006 12:17:14 PM:
>
> > 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?
>
> I added this to Switch and Merge because there were
> scenarios, probably depending on what WC changes were made by
> the action, where things just did not refresh correctly and
> the decorators were not updated.
>
> Technically it refreshes the resource you selected when you
> took the option. I realize in most cases this means the
> whole project.
>
> Mark
>
>
> ______________________________________________________________
> _______________
> Scanned for SoftLanding Systems, Inc. and SoftLanding Europe
> Plc by IBM Email Security Management Services powered by MessageLabs.
> ______________________________________________________________
> _______________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: dev-help@subclipse.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Tue Mar 28 20:25:40 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.