Date: Wed, 5 Oct 2005 13:50:36 +0200
Subject: Including instead of ignoring files
On Wednesday 05 October 2005 13:46, firstname.lastname@example.org 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
> 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
> 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:
enable-auto-props = yes
* = svn:ignore=*
% 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'
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: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Sat Oct 8 13:00:20 2005