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

RE: svn:ignore not working on directories - what am I doing wrong ?

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-07-22 17:42:57 CEST

> From: bruno modulix [mailto:bruno@modulix.org]
>
> bruno@bousin ~/public_html/spip-1.8 $ svn propget svn:ignore .
> CACHE
>
> bruno@bousin ~/public_html/spip-1.8 $ svn status .
> X mdx
> ? ecrire/inc_connect.php3
> ? ecrire/data/meta_cache.php3
> ? ecrire/data/spip.log.1
> ? ecrire/data/spip.log
> ? ecrire/data/spip.log.2
> ? ecrire/data/spip.log.3
> ? ecrire/data/session_2_167450ea8b8f81f799781f479c6e01ef.php3
> ? CACHE/skel_html_a35d5913ed929dc2c38e3660b7c7addf.php
> ? CACHE/skel_html_fbaff0390b36a5e5d3bb18ef390b7a27.php
> ? CACHE/skel_html_ffad1b95a3ab9b65ee1653108a08cce6.php
> ? CACHE/skel_html_e13228458dbbbece882f6d4ec00f1af2.php
> ? CACHE/skel_html_387e146d552e51b36b312721ed2d1db0.php
> ? CACHE/skel_html_10b598c78e58ac980646df4950473678.php
> ? CACHE/skel_html_7ad0308705527daac797f1b4d5ec8d5a.php
> ? CACHE/skel_html_c44132878f285262ec2210cb9118a0c1.php
> ? CACHE/skel_html_e0da3d8403eae3855c5a38a68a2be01c.php
> ? CACHE/skel_html_c352809b821394d58f4aec1b43f73c4d.php
> ? CACHE/skel_html_a8cd771b5277f4582b64758665174307.php
> ? CACHE/skel_html_a8b4e9f614b307fda45721bae3e959e2.php
> ? CACHE/skel_html_f323ce0fbfe7406209a777ff83c9378f.php
> ? CACHE/skel_html_eb1fe4933578c91fc2a9ed3487c781f4.php
> ? CACHE/skel_html_d41b511157f0da079728025fac792941.php
> ? CACHE/4
> ? CACHE/skel_html_3951b32e5f614bfe8c20cb7717a9aa62.php
> ? CACHE/skel_html_5c8e445ac0c9d3ff55b62c1a09e1a3d9.php
> ? CACHE/skel_html_dd78507b518b5c1657d6c2484179b27f.php
> ? CACHE/skel_html_df7e933f7dc9cdde9349bc0af4f60ae4.php
> ? CACHE/skel_html_91a350c25ba21c2946d140fa2f2a6a3b.php
> ? CACHE/skel_html_8d0a23fccd6448eb302fc758608629aa.php
> ? CACHE/skel_html_ac3e7833198adc2bf6dd29d32e4f40d6.php
> ? CACHE/skel_html_739d17e1ccbea9bed94d9bc6206aecaf.php
> ? CACHE/skel_html_afd81fd0c816a851c18238ef025b5db0.php

Note that CACHE is lised in svn:ignore for ".", and that ./CACHE must exist
(since ./CACHE/4 exists), but there is no line:

    ? CACHE

This means that even though CACHE is listed in svn:ignore, ./CACHE exists
*in the repository*, and in the WC, it is a version-controlled directory.
In such a conflict, svn ignores the fact that the item is listed in
svn:ignore.

The solution is "svn rm ./CACHE". svn will probably complain, because
./CACHE exists and contains a lot of stuff. But it will probably schedule a
deletion for ./CACHE. Once you check that in, the svn:ignore will behave
correctly.

> From: Marcello [mailto:m.romani@spinsoft.it]
>
>
> I have similar problem:
> I want to ignore all the .swp files that vim creates while I'm editing a
> source file.
> I set svn:ignore to '*.swp' (in directory MyApp) but swp files in
> subdirs still get displayed (swp files in MyApp/ dir, instead, are
> correctly ignored).

"svn:ignores" only applies to items in the directory on which it is applied.

There is one recursive effect, though: If a directory's name matches the
svn:ignores on its parent directory, everything inside of the directory is
ignored as well (of necessity).

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 22 17:51:32 2005

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.