Bug 3448 - "Add Existing Folder..." selects the .svn folder when linking existing folders/files to a new project
Summary: "Add Existing Folder..." selects the .svn folder when linking existing folder...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Linux
: Lowest enhancement
Target Milestone: ---
Assignee: Marius Ungureanu
Depends on:
Reported: 2012-02-14 12:51 UTC by David Ferguson
Modified: 2014-09-29 14:53 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David Ferguson 2012-02-14 12:51:46 UTC
Description of Problem:

Add files from existing folder should ignore .svn and .git folders (or have an option for this).  I'm in the process of replicating a project structure of an existing application in Windows.  In order to do that, I need to have some new projects that reference the same source files.  I'm creating a copy of the project file, changing the guid, and deleting all of the copied source references.  Then I'm adding links to the source files in the original project tree.  When doing this, I'm using the "Add Existing Folder..." right click option.  The resulting dialog will include the .svn folders in its selection menu.  By clicking on the root folder (I want to include all folders/files) it selects the .svn folder and I have to manually remove them.  At the very least, I would think it wouldn't automatically select folders with a . at the beginning of the name.

Steps to reproduce the problem:
1. Open an existing project that is under svn
2. Make sure the project has folders with source files and sub folders
3. Create a new project
4. Select "Add Existing Folder..."
5. Select the folder from the original project's directory tree
6. Click OK
7. Click the checkbox next to the root folder's name to include all source files and sub folders
8. Note that the .svn folders are automatically selected.

Actual Results:

The .svn folders in the original directory tree are automatically selected when selecting the root folder

Expected Results:

The .svn folder will not be selected (or even present) in the directory tree

How often does this happen? 

This makes complex projects difficult to replicate with new project files.  In addition, the ability to multiselect folders would greatly enhance usability.  One of the projects I'm porting has 20+ folders.  I am having to go through this process for each and every folder.

Additional Information:
Comment 1 Marius Ungureanu 2013-08-28 04:12:33 UTC
This issue should only exist with Subversion 1.6, as for 1.7+ the .svn folder is in the root directory.
Comment 2 Marius Ungureanu 2013-08-28 04:13:45 UTC
Is it worth investing time if the issue only affects an old version of Subversion?
Comment 3 Marius Ungureanu 2014-09-29 14:53:08 UTC
Closing issue as WONTFIX as this only affects an ancient version of Subversion.