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

RE: .cvsignore for Subversion?

From: Gavin Lambert <gavinl_at_compacsort.com>
Date: 2006-08-30 08:39:04 CEST

Quoth moslick@mail-out3.apple.com <>:
> But not all temporary files will be common to all
> clients. I find myself in that situation: I'll have some
> test files--sometimes source, sometimes data--lying around
> that I don't want to check in, but do keep around long enough
> that I get tired of seeing them in the status list. Now with
> Subversion, I could add such files to their directory's
> svn:ignore property list. But that forces all client to
> ignore files and directories with the same names as mine.
> That seems awfully presumptuous! Just because I, for
> instance, have a directory "test" that I want to ignore
> doesn't mean that all other clients will want to do so. As a
> result, this approach is unacceptable.

Although you'll get yourself into trouble if someone *does* add a
versioned 'test' directory. Mind you, the trouble in this case would
simply be 'svn update' failing with a 'directory already exists' error
(or maybe it's 'not a working copy' or something, I forget), so it's
manageable.

> Since I want client-specific ignoring, I have no
> recourse but to use Subversion's (only) client-specific
> ignoring mechanism: global-ignores. That will do exactly what
> I want, but I can envision that variable becoming really,
> really long as one adds every single ignored local file and
> directory to it! It would end up being hardly "global".

Usually you're only ignoring temporary file extensions, rather than
whole folders (though you can kinda do that, which is useful for
compiler output/intermediate directories). AFAIK you can't really
ignore one specific "test" folder while not ignoring another "test"
folder, though, unless the one you don't want to ignore has already been
explicitly versioned.

> The most elegant solution, I believe, would be to add
> .cvsignore functionality to what Subversion already has.
> Files/directories would be ignored if (1) they appear in the
> global-ignores variable in the config file; (2) they appear
> in the svn:ignore property of the directory in which they
> reside; or (3) they appear in a ".svnignore" file in the
> directory in which they reside, should a .svnignore file be
> present in that directory. This would give server- *and*
> client-side local ignoring and client-side global ignoring.
> I hope Subversion's developers will think about adding this
> feature. Thanks for the consideration!

Seems reasonable to me. +1 :)

(Except Windows Explorer doesn't actually let you create files with a
leading dot, so that might annoy some Windows users. But then just
about any other program does, so it's not a biggie.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 30 08:40:57 2006

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.