Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358104 - Synchronize with Workspace does not respect selection
Summary: Synchronize with Workspace does not respect selection
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 08:31 EDT by Dani Megert CLA
Modified: 2013-10-03 05:06 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2011-09-19 08:31:44 EDT
1.1.0.201109151100-r.

Team > Synchronize with workspace does not show/synchronize the selected project(s) but extends it to the whole repository.

This might be necessary due to how Git works but in that case the view should not show the name(s) of the selected project(s) but rather the repositories that it shows/synchronizes.
Comment 1 Remy Suen CLA 2011-11-02 18:34:58 EDT
The selection is respected if a folder is selected.

Dani, do you think we should a) change 'Team > Synchronize Workspace' to be 'Team > Synchronize Repository' and have it always synchronize the whole repository or b) change it to 'Team > Synchronize' and have it respect selection correctly?
Comment 2 Dani Megert CLA 2011-11-03 05:49:48 EDT
(In reply to comment #1)
> The selection is respected if a folder is selected.
> 
> Dani, do you think we should a) change 'Team > Synchronize Workspace' to be
> 'Team > Synchronize Repository' and have it always synchronize the whole
> repository or b) change it to 'Team > Synchronize' and have it respect
> selection correctly?

Neither of that ;-)

For consistency it should work like in CVS:
- rename it to "Synchronize with Repository"
- synchronize each of the selected resources
- enable the action on IFile
Comment 3 Corneliud Dirmeier CLA 2012-08-29 03:12:21 EDT
In EGit 2.0 only the selected Project is synchronized. As far as the action is called 'Synchronize Workspace' it should synchronize the whole workspace but it does not. Also in version 1.1 it only took the repository of the selected project. And that was exactly the behaviour I prefered.

So please clarify the label and the behaviour of the synchronize action!
Comment 4 Flavio Donze CLA 2013-10-03 05:06:19 EDT
I have multiple projects from multiple GIT repositories in my workspace. 
From the label "Synchronize Workspace" I would expect that it synchronizes all the repositories but it only synchronizes the repository of the selected project.

Maybe the solution would be to have two commands "Synchronize Workspace" and "Synchronize with Repository". 

BTW Subversion labels the command "Synchronize with Repository". 

Should I create a separated issue for the "Synchronize Workspace" which synchronizes all repositories?