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

Re: Global ignore pattern not working...

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2007-03-29 22:23:13 CEST

mperrone wrote:
> One of the problems with the Subversion/Tortoise is the assumption that
> everyone has a UNIX background. It would help a tremendous amount to offer
> documentation for other platforms.

No, we don't assume that at all. TortoiseSVN is a Windows client. There
is no Unix version (although people still ask for one).

> The manual states...
> Global ignore patterns are used to prevent unversioned files from showing up
> e.g. in the commit dialog. Files matching the patterns are also ignored by
> an import. Ignore files or directories by typing in the names or extensions.
> Patterns are separated by spaces e.g. */bin */obj *.bak *.~?? *.jar
> *.[Tt]mp. The first two entries refer to directories, the other four to
> files.

... and you missed the end of the paragraph:
"These patterns use filename globbing. Read Section 5.11.1, “Filename
Globbing in Ignore Lists” for more information."

unless you have a really old version which doesn't include this text.

> Since I do not have a UNIX background, I had to spend about 2 hours digging
> through forums for a simple answer. The help file was useless.

Objection, your honour! Reading the cross reference would have explained
what these patterns mean.

> This filter is for a Visual Studio 2005 project...
> *\bin *\obj *\bin\* *\obj\* *.vssscc *.scc *.suo *.vspscc *\Properties
> *\Properties\* *.datasource app.config *.user

Always use forward slashes in Subversion. That's a unixism, but it
applies also to URLs which you should be equally familiar with.

> The filters will vary by the type of project.

Have you looked at the svn:ignore property for folders? That is a much
more project-oriented way of doing it.

> I am doing an evaluation of
> SourceSafe 2005 and Subversion. Thats why I have the vs filters. With
> this filter, the repository contents matched what SourceSafe loads into its
> own repository.
>>From what I can tell, a file filter drills down into subfolders but a folder
> filter by itself, as implied by the help file, does not work at all. if you
> want to also ignore the folder, use the *\folder\* syntax. Again, I don't
> know UNIX so maybe all you need is *\folder\* to ignore the folder and the
> files in that folder.

The filter doesn't do any drilling. When subversion does the import, it
generates a list of paths relative to the folder you are importing. If
any path matches one of the ignore patterns it is not imported. Remember
that in this context, '*' can match any number of any character,
including '/' so it works on any subdirectory depth. I'll see what I can
do to make the help file description better.

The import command is not one of Subversion's better designs - that's a
known issue. But there is a workaround which is described here:


This one really should be in the manual. I'll take a look at it.

> A knowledgebase addressing common Subversion issues would be another great
> help.



   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Mar 29 22:23:20 2007

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

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