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

Including instead of ignoring files

From: <kynn_at_panix.com>
Date: 2005-10-08 13:32:41 CEST

[ Through a cut-and-paste error I mistakenly sent the message below
  with the incorrect subject line 'Re: "Out of date" error'. My
  apologies to Ph. Marek and to the list. ]

   From: "Ph. Marek" <philipp.marek@bmlv.gv.at>
   Date: Wed, 5 Oct 2005 13:50:36 +0200
   Subject: Including instead of ignoring files

   On Wednesday 05 October 2005 13:46, kynn@panix.com wrote:
> I find that, at any given time in my current directory there are more
> files that I don't want to put under version control. I'm aware of
> svn:ignore property, but I find it very inconvenient to have to
> register the more numerous files that I want ignored; I'd much prefer
> to specifically list those relatively few files that I want under
> version control.
> The only workaround I can think of (and which I really don't like) is
> to get in the habit always naming my many non-repository-bound files
> with a leading underscore, and adding the pattern _* to the svn:ignore
> property.
> The reason I don't like this particular workaround (aside from a
> visceral aversion to giving most of my files and directories
> odd-looking names) is having to perform this configuration for every
> project directory and all the subdirectories below it. What a pain.
> Is there a way to specify a default value for svn:ignore once and for
> all?
> Or better yet, is there a better way to work around the problem of
> having to maintain huge lists of files to ignore for each directory?

   How about setting
       svn:ignore = *


   You can set that in your ~/.subversion/config file.

What exactly do you mean? I tried putting

svn:ignore = *

in my ~/.subversion/config file and I got an error:

svnadmin: /home/kynn/.subversion/config:1: Section header expected

I tried other alternatives, which silenced the error, but were
ineffective, meaning that imports still caused all the files in the
current directory to be imported.

For example, after putting this in my ~/.subversion/config file:

### Start

enable-auto-props = yes

* = svn:ignore=*

### End

I tried

% rm -rf ~/dummy-repos dummy
% svnadmin create ~/dummy-repos
% mkdir dummy
% cd dummy
% touch foo bar baz
% svn import . file:///home/kynn/dummy-repos/dummy -m 'no message'
Adding foo
Adding bar
Adding baz

Committed revision 1.

As you can see, everything in the current directory got imported; the
lines in my ~/.subversion/config file did not have the intended

I've been trying to get this idea to work for a few hours now. What
am I doing wrong?


- ---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
------- End of forwarded message -------

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 8 13:34:43 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.