Bug 6 - API - IResource.setLocal has problems (1G5TC8L)
Summary: API - IResource.setLocal has problems (1G5TC8L)
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin McGuire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23
  Show dependency tree
 
Reported: 2001-10-10 21:34 EDT by Jim des Rivieres CLA
Modified: 2014-10-15 17:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2001-10-10 21:34:51 EDT
IResource.setLocal has problems. This method (which replaces ensureLocal
and scrubLocal) requires some form of connection to the VCM provider,
since the VCM provider is the only thing that could make a resource local.

Indeed, the whole notion of "local" resources requires VCM support and needs
to be reviewed.

NOTES:

JM (12/11/2000 10:24:05 PM)
	The only scenario in which non-local resources makes sense is one 
involving a VCM.
	setLocal does not replace ensureLocal.  It is there to support the VCM 
fetching content 
	and then telling the workspace that it should expect to see the content 
in the file system.
	Similarly, with scrubLocal.  It is expected that the VCM itself is the 
one that does the 
	dirty work of adding/deleting the content in the file system.  

jeem (12/13/00 7:01:26 PM) - Where are ensureLocal and scrubLocal? They don't 
appear
in the API any more (they were there in tech preview).

JM (01/02/2001 11:32:24 AM)
	These notions should be related to the VCM.
	Moving to BB for consideration.

KM (4/6/01 3:49:13 PM)
	Only sender that calls it with 'false' is ScrubLocalAction, which looks 
like it can be deleted.
	We are not making use of this core feature since neither CVS nor CC 
benefits from it.
	I am concerned then it may not even work given there are no senders 
of 'false'.
	Nothing to be done about this right now, moving to future.

JM (06/04/2001 6:58:28 PM)
	There likely are test suites which test the (false) case.
	This is both legacy and future expansion.  The VCM model does not 
require one to 
	have all resources local.  CVS and CC appear to have a model where 
everything is local.  
	Things like VSS do not use this model.  I believe that PVCS and 
Perforce do not require you
	to have everything local but that is fuzzy for me.  DAV does not 
specify either way as
	it is a protocol.  It is easy to see both modes of operation (i.e., 
both "I GET the whole project" and 
	"I GET only what I need").  
	Regardless, the setLocal functionality relates to modeling resource 
existance 
	without actualy being forced to fetch the resource.

	So, this is core API which is related to part of the VCM model which is 
not yet fully implemented.
	If you have a particular concern about the API being there, we can 
remove the it until VCM 
	implementations for VSS, DAV, ... are being done and determine that 
they need the behaviour.
Comment 1 Jean-Michel Lemieux CLA 2001-10-12 16:34:08 EDT
This is a 
Comment 2 Kevin McGuire CLA 2002-02-07 16:29:37 EST
Closing - a spec is in the works for non-local resources.