Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348163 - [Change Sets] When opening a project, changed files are added to the default change set
Summary: [Change Sets] When opening a project, changed files are added to the default ...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-03 01:06 EDT by Sam Davis CLA
Modified: 2020-08-09 19:55 EDT (History)
3 users (show)

See Also:


Attachments
mylyn/context/zip (19.83 KB, application/octet-stream)
2011-08-19 11:59 EDT, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Davis CLA 2011-06-03 01:06:28 EDT
# Activate a task
# Change a file
# Close that file's project
# Activate a different task
# Open the project
# The changed file has moved to the active change set
Comment 1 Steffen Pingel CLA 2011-06-05 12:05:06 EDT
Sam, do you know if this happens without a task being active as well? You can select a default change set through the context menu in the synchronize view.
Comment 2 Sam Davis CLA 2011-06-06 16:16:04 EDT
Yes, it happens also when setting a change set to default with no task active.
Comment 3 Steffen Pingel CLA 2011-06-09 10:54:59 EDT
Thanks for checking. Sounds like Mylyn's change set management inherits the behavior of the platform. I'll move this to team to see if this has been discussed before. 

Sam, can you describe the behavior you expect?
Comment 4 Sam Davis CLA 2011-06-09 12:11:53 EDT
When a project is opened, I would expect changed files within it to appear in the same change set(s) they were in when the project was closed.
Comment 5 Tomasz Zarna CLA 2011-07-11 11:15:01 EDT
Is this a regression? Is there a previous version of Eclipse that works like you would expect or was it always like that? I don't recall making any changes in this area.
Comment 6 Sam Davis CLA 2011-07-11 13:09:31 EDT
I don't know if it ever worked as I would expect.
Comment 7 Steffen Pingel CLA 2011-07-11 13:43:44 EDT
I has probably been that way all along and is not a regression. I moved it here to get input why it was implemented the way it is and thoughts on changing the behavior as Sam suggested.
Comment 8 Tomasz Zarna CLA 2011-08-19 11:59:35 EDT
I agree, this is not what I would expect either. Apparently, when reopening the project, the check made in ChangeSetContentProvider.isContainedInSet(IDiff) returns false even for IDiffs which were part of the change set before closing the project. Maybe they're removed from the set when closing the project? Haven't checked that though, just a guess.
Comment 9 Tomasz Zarna CLA 2011-08-19 11:59:38 EDT
Created attachment 201808 [details]
mylyn/context/zip
Comment 10 Stepan Kolesnik CLA 2015-09-02 08:08:37 EDT
Still here in 4.4. this is very annoying, you work on a few change sets then close the project and all of them are gone.
Comment 11 Eclipse Genie CLA 2020-08-09 19:55:23 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.