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

Re: [TSVN] BUG: ignore on directories?

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-06-02 18:57:30 CEST

Andrew Patterson wrote:
> I've found what I think is a bug in TortoiseSVN, with the ignore list,
> but maybe I'm simply incompetent :P

Neither. The global ignore feature in subversion is, shall we say,
tricky. It is good for generally ignoring file types, like *.tmp *.obj,
but not so good for specific directories. But that is because it is not
really intended for that. You should use instead the svn:ignore property
on the immediate parent folder.

Subversion is matching the whole path, so foo* does not match
libraries/foo. You could use */foo*. But see the BUT below ...

> I'm having trouble ignoring a specific directory deep in my source
> tree. Ignoring directories on the immediate root seem to work, but
> not farther up the hierarchy.
>
> Example tree:
>
> includes/
> src/
> libraries/includes
> libraries/src
> libraries/foo
> Debug/
> Release/
>
> If I tell it to ignore Debug & Release, it will ignore them and
> everything in them. If I tell it to ignore 'foo', it will still show
> any files not under source control in libraries/foo.

You need to go to the 'libraries' folder, select 'foo', right click and
add to ignore list. Or look at the properties of 'libraries', goto
subversion tab and add 'foo' to the svn:ignore property there.

BUT. If foo is already added to subversion, that won't help. Ignoring
only works for files and folders not already under version control. If
that is the case, if foo contains junk just SVN delete it. If it
contains useful stuff, but you just don't want it versioned, SVN export
it to a temp folder, then SVN delete it (and commit), then move the
exported folder back and svn:ignore it.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jun 2 18:58:54 2005

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

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