all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* default value of grep-find-ignored-directories should include .svn
@ 2006-07-04 19:22 David Glasser
  2006-07-19 11:20 ` Kim F. Storm
  0 siblings, 1 reply; 5+ messages in thread
From: David Glasser @ 2006-07-04 19:22 UTC (permalink / raw)


The new grep-find-ignored-directories variable is a good idea.  I
think its default value should include ".svn" and probably "_darcs"
too, as these are commonly used version control systems (Subversion at
least is arguably much more popular than Mercurial and Arch, whose
directories are currently in the default value).

--dave
glasser@mit.edu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default value of grep-find-ignored-directories should include .svn
  2006-07-04 19:22 default value of grep-find-ignored-directories should include .svn David Glasser
@ 2006-07-19 11:20 ` Kim F. Storm
  2006-07-19 11:29   ` David Glasser
  2006-07-19 16:56   ` Kevin Rodgers
  0 siblings, 2 replies; 5+ messages in thread
From: Kim F. Storm @ 2006-07-19 11:20 UTC (permalink / raw)
  Cc: emacs-devel

David Glasser <glasser@mit.edu> writes:

> The new grep-find-ignored-directories variable is a good idea.  I
> think its default value should include ".svn" and probably "_darcs"
> too, as these are commonly used version control systems (Subversion at
> least is arguably much more popular than Mercurial and Arch, whose
> directories are currently in the default value).

Ok, I have added them.


However, there is generally no need to exclude directories from the
find, unless the version control systems actually store copies/backups
of source files in there, or otherwise use file names which resembles
source file names that may confuse the search and give false matches.

For CVS, in some cases, the CVS/Base subdir contains copies of modified
files.  So CVS must be excluded from the search.

Does the other VC's do this too in some cases?

Or are there other reasons to exclude them from the search?

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default value of grep-find-ignored-directories should include .svn
  2006-07-19 11:20 ` Kim F. Storm
@ 2006-07-19 11:29   ` David Glasser
  2006-07-19 16:56   ` Kevin Rodgers
  1 sibling, 0 replies; 5+ messages in thread
From: David Glasser @ 2006-07-19 11:29 UTC (permalink / raw)
  Cc: emacs-devel

On 7/19/06, Kim F. Storm <storm@cua.dk> wrote:
> However, there is generally no need to exclude directories from the
> find, unless the version control systems actually store copies/backups
> of source files in there, or otherwise use file names which resembles
> source file names that may confuse the search and give false matches.

Yes, Subversion do store pristine "base" copies of the file (in
.svn/text-base and _darcs/current).

--dave

-- 
David Glasser | glasser@mit.edu | http://www.davidglasser.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default value of grep-find-ignored-directories should include .svn
  2006-07-19 11:20 ` Kim F. Storm
  2006-07-19 11:29   ` David Glasser
@ 2006-07-19 16:56   ` Kevin Rodgers
  2006-07-19 17:37     ` Stefan Monnier
  1 sibling, 1 reply; 5+ messages in thread
From: Kevin Rodgers @ 2006-07-19 16:56 UTC (permalink / raw)


Kim F. Storm wrote:
> David Glasser <glasser@mit.edu> writes:
> 
>> The new grep-find-ignored-directories variable is a good idea.  I
>> think its default value should include ".svn" and probably "_darcs"
>> too, as these are commonly used version control systems (Subversion at
>> least is arguably much more popular than Mercurial and Arch, whose
>> directories are currently in the default value).
> 
> Ok, I have added them.
> 
> However, there is generally no need to exclude directories from the
> find, unless the version control systems actually store copies/backups
> of source files in there, or otherwise use file names which resembles
> source file names that may confuse the search and give false matches.
> 
> For CVS, in some cases, the CVS/Base subdir contains copies of modified
> files.  So CVS must be excluded from the search.
> 
> Does the other VC's do this too in some cases?
> 
> Or are there other reasons to exclude them from the search?

Because your find command may not even have a -name clause, or (as
you say above) the -name pattern may match files in the VC directory.
I think that's a good enough reason.

-- 
Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default value of grep-find-ignored-directories should include .svn
  2006-07-19 16:56   ` Kevin Rodgers
@ 2006-07-19 17:37     ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2006-07-19 17:37 UTC (permalink / raw)
  Cc: emacs-devel

>> Or are there other reasons to exclude them from the search?

Sometimes the admin directory is so large (esp number of files) that the
performance impact is very significant (can be slower by more than a factor
of 2).


        Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-07-19 17:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04 19:22 default value of grep-find-ignored-directories should include .svn David Glasser
2006-07-19 11:20 ` Kim F. Storm
2006-07-19 11:29   ` David Glasser
2006-07-19 16:56   ` Kevin Rodgers
2006-07-19 17:37     ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.