[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Pattern for excluding a directory in global-ignores

From: Maddes <maddes_svnlists_at_arcor.de>
Date: 2007-08-15 23:48:45 CEST

Hello Mike,

first you mixed up the client's configuration "global-ignores" with an
directory property. "svn:ignore" is a folder property.

Note that the ignore lists just work on the name of a directory or a
file (e.g. temp), not on pathes (e.g. /path/to/temp).

Also you can only use normal shell patterns and no regular expressions.
So stick to * and ? as these are available on all platforms.

If you are using a unix client you can also use [] patterns in its
config file, but don't put these into the "svn:ignore" property as they
will fail for Windows clients.

Here are links to the related chapters in the SVN book:

To solve your problem just add a line with "temp" to the "svn:ignore"
property of the folder that contains the temp folder.
I do the same for the "obj" folder of my Visual C++ projects.

Matthias "Maddes" Bücher

On 15.08.2007 21:34, Michael J. Rivard wrote:
> If I want to avoid importing all directories named, for example, temp,
> then adding */temp/* to my list of global ignores does *not* work. This
> is counter-intuitive because *nix shell commands usually accept */temp/*
> as a valid filename pattern. However, I discovered that simply adding
> temp to the list of global ignores does do the trick.
> What are all of the valid pathname patterns that can be used in
> svn:global-ignores and svn:ignore? This should be included in the
> Subversion book. For example, can I exclude logs only if it's in temp,
> i.e. temp/logs?
> Best regards,
> Mike

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 15 23:46:28 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.