Bug 3024 - [resources] Ensure removing sync info deletes resource (1GD43Y0)
Summary: [resources] Ensure removing sync info deletes resource (1GD43Y0)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Rafael Chaves CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2001-10-10 22:48 EDT by DJ Houghton CLA
Modified: 2002-12-03 13:29 EST (History)
0 users

See Also:


Attachments
Test case for checking expected behaviour (3.63 KB, patch)
2002-12-03 11:52 EST, Rafael Chaves CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2001-10-10 22:48:03 EDT
Make sure that when we remove sync info for a resource
	that we are deleting the resource (and all its children?) if
	there is no other info.

NOTES:

DJH (5/3/01 8:35:02 AM)
	Should we be deleting children automatically?
	Consider the following:
	- have project /proj
	- have phantoms /proj/a, /proj/a/b, /proj/a/c (note: all have sync info)
	- set the sync info for /proj/a to be null
	- /proj/a is a phantom and is no longer synchronizing so
	  we should delete it
	- but its children still have sync info
	- should we go by the assumption that if the parent is no longer
	  synchronizing, then the children aren't either?
	- can you synchronize subtrees?
	- I think targets can!

DJH (5/4/01 7:14:26 PM)
	We will not allow the synchronization of subtrees. This is just
	too expensive w.r.t. the deletions and garbage collection.

	Currently VCM forces the user to synchronize at the project
	level.

	With targets we will add to the API that if a user wants
	to synchronize a subtree, then they must put sync info
	on the parents of the tree.
Comment 1 Rafael Chaves CLA 2002-12-03 11:52:17 EST
Created attachment 2627 [details]
Test case for checking expected behaviour

Adds a test case to ISynchronizerTest that removes a resource, sets its sync
info to null and ensures the phantom does not exist any more. Tests when the
removed resource is a file and a folder containing a file.

Please verify and release.
Comment 2 DJ Houghton CLA 2002-12-03 13:29:27 EST
Test case released into HEAD.