Bug 3488 - Find in Files and Replace in Files takes into account .svn folders
Summary: Find in Files and Replace in Files takes into account .svn folders
Status: RESOLVED DUPLICATE of bug 2055
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: Other Other
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-02-15 18:01 UTC by David Ferguson
Modified: 2012-03-28 09:18 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-15 18:01:47 UTC
Description of Problem:

Find in Files and Replace in Files takes into account .svn folders when executing a directory search (which is what happens when you want to replace text in files only within a project).  This makes this feature difficult to use when used in conjunction with svn.  The source control folder text gets matched and potentially changed.

Steps to reproduce the problem:
1. Select a project file with source files in it
2. Right click and select Find in Files
3. Select to Replace
4. Input a search string that will occur in at least one file
5. Select either Find or Replace
6. The search string is matched in metadata files in the .svn folder of the project.

Actual Results:

Metadata files in the .svn directory (and possibly .git) can accidentally be modified.

Expected Results:

The find in files should have the option to ignore the .svn and .git directories (or it should do so by default).

How often does this happen? 

Whenever I'm searching/replacing text in all files in a project.

Additional Information:
Comment 1 Mikayla Hutchinson [MSFT] 2012-02-15 18:31:27 UTC
I'm not sure how "find in files" can know for certain what folders to ignore. I suppose we could make it ignore hidden files and folders, and add an option to include them.

See also bug 2055, arguably a better solution to this problem.
Comment 2 Mike Krüger 2012-03-28 09:18:56 UTC
I think #2055 is the way to go

*** This bug has been marked as a duplicate of bug 2055 ***