This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 169935 - Add ability to commit SVN changes located in all open projects
Summary: Add ability to commit SVN changes located in all open projects
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 22:56 UTC by massol
Modified: 2009-12-09 12:08 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description massol 2009-08-05 22:56:46 UTC
I couldn't find a way to commit the changes I have done across several projects all at once. I have changes to about 20
modules and they all represent a single issue I'm fixing.

If such a way exist it seems it's not easy to find and this issue could then be thought as improving the accessibility
for this feature.

Thanks
Comment 1 Ondrej Vrabec 2009-08-06 07:18:06 UTC
Then why don't you select them all at once? You can select more than one project and if they are all under subversion,
you will be able to perform Subversion > Commit
Comment 2 massol 2009-08-06 08:41:49 UTC
Ok I didn't know I could do that. But still it's not usable for me since:
* I couldn't find a way (menu action or shortcut) to select all projects at once. I have 30+ projects open
* I couldn't find a way to fold all projects that are expanded (i.e. where I have navigated to) and thus manually
folding them in order to be able to navigate and select them would be too expensive as a solution.

Thanks
Comment 3 Milos Kleint 2009-08-06 10:07:03 UTC
Another solution is to navigate to the root svn folder in Favourites view and commit from there. This view doens't
respect the project boundaries.
Comment 4 Tomas Pavek 2009-08-06 10:35:10 UTC
Most of versioning actions are context sensitive, i.e. operate on current selection. The question is how we can 
represent the "all" context easily. We probably don't want to have another set of same actions that are global. It 
would be much easier if the IDE showed the versioning root somehow on which operations over entire repository could be 
performed. We'll see if we can find some solution.

Some tips for now:
* You can invoke Subversion > Show Changes on all selected projects. It opens a window in which you can review and 
commit changes (and also do updates). You can keep this window opened - it will remember the context, just need to 
refresh it from time to time. So then you don't need to select all projects again and again for each commit.
* Another way is to add the local SVN root folder to Favorites (from menu Window | Favorites), then you can invoke SVN 
actions on that folder in Favorites window.
Comment 5 jeremyclarke 2009-12-09 12:08:22 UTC
Wow, thanks for the tips Thomas. I was having a very similar problem keeping track of my svn context and was getting really annoyed with having to open files/projects, navigate to my working copy dir, then do the right click thing on it to get it to show changes, but adding each working copy to favorites makes this process much less painfull. 

That said I think the SVN system in NB is still tragically underpowered when it comes to the context info in the UI. It's really easy to get frustrated and confused. 

IMHO when you do 'show changes' there should be somewhere in the resulting window section that allows for context changing. As it is you often end up with one single file and no way to increase the context. there should be a button with the 'update all' etc. that says something like a pulldown menu with scope. If you're looking at one file pulling down the menu should show the directory above it in the working copy, then the parent working copy. 

It would also be insanely useful to show another pulldown menu with each of the distinct working copies in the current project. When I commit I tend to go through all the working copies in my project one by one. If the 'show changes' box had a way to switch between contexts quickly it would simplify this process immensely as well as decreasing the likelihood that I'll forget one of my working copies and end up missing some stuff that needs committing. 

I also think that there's a distinct lack of 'subversion' context menus when dealing with directories in projects/files. If there is a working copy somewhere under a given directory I think it should be available from its parents. Clearly the 'show changes' box can handle multiple working copies at once, so why not have an option in the contextual menu for a parent directory to 'Subversion > Show all changes?