You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by bruno modulix <br...@modulix.org> on 2005/07/21 17:54:18 UTC
svn:ignore not working on directories - what am I doing wrong ?
Hi
I can't get svn to ignore a directory.
My project (a website based on spip cms) has a "CACHE" directory (under
the project root). As its name implies, there's no point versionning it,
so I did not imported it in the repository !-)
Now since this dir can be quite large, I'd like not to heard of it
anymore. So what I did:
-> svn propedit svn:ignore .
-> typed CACHE in the editor
-> saved and quit
-> commited (ok)
But still the whole dir and it's content appears (as unversionned of
course) when I svn status :(
I've read the doc, I've searched thru this ml's archives, I've tried
many variants (/CACHE, CACHE/, CACHE*, etc), I've tried with another
editor, I've tried adding whitespace, new lines, whatever...
I just don't understand what I'm doing wrong - but I guess it must be
obvious (as usual...).
Any hint anyone ?
NB : gentoo linux, svn version 1.2.1 (r15230)
NB 2 : globals ignore on emacs backups (*.*~) works fine
TIA
--
Bruno Desthuilliers
Développeur
bruno@modulix.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:ignore not working on directories - what am I doing wrong
?
Posted by Marcello <m....@spinsoft.it>.
Marcello ha scritto:
> bruno modulix ha scritto:
>
>> Hi
>>
>> I can't get svn to ignore a directory.
>>
>> My project (a website based on spip cms) has a "CACHE" directory (under
>> the project root). As its name implies, there's no point versionning it,
>> so I did not imported it in the repository !-)
>>
>> Now since this dir can be quite large, I'd like not to heard of it
>> anymore. So what I did:
>>
>> -> svn propedit svn:ignore .
>> -> typed CACHE in the editor
>> -> saved and quit
>> -> commited (ok)
>>
>> But still the whole dir and it's content appears (as unversionned of
>> course) when I svn status :(
>>
>> I've read the doc, I've searched thru this ml's archives, I've tried
>> many variants (/CACHE, CACHE/, CACHE*, etc), I've tried with another
>> editor, I've tried adding whitespace, new lines, whatever...
>>
>> I just don't understand what I'm doing wrong - but I guess it must be
>> obvious (as usual...).
>>
>>
>> Any hint anyone ?
>>
>> NB : gentoo linux, svn version 1.2.1 (r15230)
>> NB 2 : globals ignore on emacs backups (*.*~) works fine
>>
>>
>> TIA
>
>
> 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).
>
> To better explain the situation, below is the cut-n-paste of a sample
> session:
>
> ------ begin cut-n-paste ----------
> -> cd MyApp
> -> svn propget svn:ignore .
> *.swp
>
> [# in another terminal, 'cd MyApp' then 'vim lib/MyApp/C/Menu.pm' ]
>
> -> svn status .
> ? lib/MyApp/C/.Menu.pm.swp
>
> [# in another terminal, 'cd MyApp' then 'vim MyApp/Makefile.PL' ]
>
> -> svn status .
> ? lib/MyApp/C/.Menu.pm.swp
>
> ------ end cut-n-paste ----------
>
> It seems to me that svn:ignore has effect only in the directory on which
> the property is set, i.e. it does not act recusively.
>
> Marcello
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Thanks Ben, thanks bruno
you are right, it's in the docs... I _did_ read the svn book but I
must have missed that point.
Marcello
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:ignore not working on directories - what am I doing wrong ?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Jul 22, 2005, at 7:47 AM, Marcello wrote:
>
> It seems to me that svn:ignore has effect only in the directory on
> which
> the property is set, i.e. it does not act recusively.
Correct, there are no recursive or "inherited" properties.
What you want to do is add *.swp to your 'global-ignores' variable in
~/.subversion/config.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:ignore not working on directories - what am I doing wrong
?
Posted by bruno modulix <br...@modulix.org>.
Marcello wrote:
> bruno modulix ha scritto:
>
>> Hi
>>
>> I can't get svn to ignore a directory.
>>
(snip)
>
> 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).
This is the expected behaviour.
(snip)
>
> It seems to me that svn:ignore has effect only in the directory on which
> the property is set, i.e. it does not act recusively.
Right. It's even written in full words in the doc (which I must have
read it a few thousand times yesterday, so I can tell you !-)
For you want to do, you must either set the svn:ignore prop in all and
every directory (yuck) or set it as a global ignore in your conf
http://svnbook.red-bean.com/nightly/en/svn.advanced.html#svn.advanced.confarea.opts.config
In your case, the second option is obviously the most appropriate.
HTH
--
Bruno Desthuilliers
Développeur
bruno@modulix.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:ignore not working on directories - what am I doing wrong
?
Posted by bruno modulix <br...@modulix.org>.
Dale Worley wrote:
>>From: bruno modulix [mailto:bruno@modulix.org]
>>
(snip)
>
> Note that CACHE is lised in svn:ignore for ".", and that ./CACHE must exist
> (since ./CACHE/4 exists), but there is no line:
>
> ? CACHE
Get it. Doh :(
I *knew* this had to be pretty obvious...
> 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.
Ok, let's try... pile poil !-)
Thanks Dale, I was getting tired of grep'ing !-)
<faq>
This could make a FAQ IMHO - well, I don't know if it's that frequently
asked (it's not, or I would have found it before...), but this may
happen to other svn users too...
</faq>
Anayway, thanks again !-)
--
Bruno Desthuilliers
Développeur
bruno@modulix.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: svn:ignore not working on directories - what am I doing wrong ?
Posted by Dale Worley <dw...@pingtel.com>.
> 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
Re: svn:ignore not working on directories - what am I doing wrong
?
Posted by Marcello <m....@spinsoft.it>.
bruno modulix ha scritto:
> Hi
>
> I can't get svn to ignore a directory.
>
> My project (a website based on spip cms) has a "CACHE" directory (under
> the project root). As its name implies, there's no point versionning it,
> so I did not imported it in the repository !-)
>
> Now since this dir can be quite large, I'd like not to heard of it
> anymore. So what I did:
>
> -> svn propedit svn:ignore .
> -> typed CACHE in the editor
> -> saved and quit
> -> commited (ok)
>
> But still the whole dir and it's content appears (as unversionned of
> course) when I svn status :(
>
> I've read the doc, I've searched thru this ml's archives, I've tried
> many variants (/CACHE, CACHE/, CACHE*, etc), I've tried with another
> editor, I've tried adding whitespace, new lines, whatever...
>
> I just don't understand what I'm doing wrong - but I guess it must be
> obvious (as usual...).
>
>
> Any hint anyone ?
>
> NB : gentoo linux, svn version 1.2.1 (r15230)
> NB 2 : globals ignore on emacs backups (*.*~) works fine
>
>
> TIA
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).
To better explain the situation, below is the cut-n-paste of a sample
session:
------ begin cut-n-paste ----------
-> cd MyApp
-> svn propget svn:ignore .
*.swp
[# in another terminal, 'cd MyApp' then 'vim lib/MyApp/C/Menu.pm' ]
-> svn status .
? lib/MyApp/C/.Menu.pm.swp
[# in another terminal, 'cd MyApp' then 'vim MyApp/Makefile.PL' ]
-> svn status .
? lib/MyApp/C/.Menu.pm.swp
------ end cut-n-paste ----------
It seems to me that svn:ignore has effect only in the directory on which
the property is set, i.e. it does not act recusively.
Marcello
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:ignore not working on directories - what am I doing wrong ?
Posted by Ben Collins-Sussman <su...@collab.net>.
Can you show us a exact cut-and-paste transcript of commands (and
results) that demonstrate the problem. (Instead of describing it to
us?)
On Jul 21, 2005, at 12:54 PM, bruno modulix wrote:
> Hi
>
> I can't get svn to ignore a directory.
>
> My project (a website based on spip cms) has a "CACHE" directory
> (under
> the project root). As its name implies, there's no point
> versionning it,
> so I did not imported it in the repository !-)
>
> Now since this dir can be quite large, I'd like not to heard of it
> anymore. So what I did:
>
> -> svn propedit svn:ignore .
> -> typed CACHE in the editor
> -> saved and quit
> -> commited (ok)
>
> But still the whole dir and it's content appears (as unversionned of
> course) when I svn status :(
>
> I've read the doc, I've searched thru this ml's archives, I've tried
> many variants (/CACHE, CACHE/, CACHE*, etc), I've tried with another
> editor, I've tried adding whitespace, new lines, whatever...
>
> I just don't understand what I'm doing wrong - but I guess it must be
> obvious (as usual...).
>
>
> Any hint anyone ?
>
> NB : gentoo linux, svn version 1.2.1 (r15230)
> NB 2 : globals ignore on emacs backups (*.*~) works fine
>
>
> TIA
> --
> Bruno Desthuilliers
> Développeur
> bruno@modulix.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ignore not working on directories - what am I doing wrong ?
Posted by bruno modulix <br...@modulix.org>.
Dale Worley wrote:
>>From: bruno modulix [mailto:bruno@modulix.org]
>>
>>But still the whole dir and it's content appears (as unversionned of
>>course) when I svn status :(
>
>
> At the least, can you send us (as an attachment, which is less likely to be
> corrupted) the transcript of what you get when you execute:
>
> svn propget svn:ignore .
> svn status .
>
copy/pasted below and in attachement...
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
Vérification de l'état sur la référence externe en 'mdx'
bruno@bousin ~/public_html/spip-1.8 $
HTH
--
Bruno Desthuilliers
Développeur
bruno@modulix.org
RE: ignore not working on directories - what am I doing wrong ?
Posted by Dale Worley <dw...@pingtel.com>.
> From: bruno modulix [mailto:bruno@modulix.org]
>
> But still the whole dir and it's content appears (as unversionned of
> course) when I svn status :(
At the least, can you send us (as an attachment, which is less likely to be
corrupted) the transcript of what you get when you execute:
svn propget svn:ignore .
svn status .
Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org