You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Early Ehlinger <ea...@respower.com> on 2004/02/15 18:51:59 UTC
SVN ignores svn:ignore during svn add
I've been transitioning from VSS to SVN. All in all, it's been a fabulous
experience.
I finally figured out how to use svn:ignore so that svn status doesn't
include targets like *.obj, *.exe, etc. etc., when listing out all of the
files that I haven't yet added to the repository. That's working great.
But, when I have a directory that I'm trying to add to version control
that contains files that should be ignored, svn does the (imho) wrong
thing:
X:\>svn pg svn:ignore .
*.ignore
X:\>dir /s/b test
X:\test\test.ignore
X:\>svn add test
A test
A test\test.ignore
Note that --auto-props doesn't seem to affect this:
X:\>svn --auto-props add test
A test
A test\test.ignore
My workaround (such as it is..) has been to do this:
X:\>echo x:\test > dir.txt
X:\>dir /s/b test | findstr -v "\.ignore$" >> dir.txt
X:\>type dir.txt
x:\test
X:\test\test.noignore
X:\>for /F %i in (dir.txt) do @svn -N add "%i"
A X:\test
A X:\test\test.noignore
Needless to say, this works, but it's a real pain in the butt.
Am I missing something obvious?
--
Best Regards,
- Early Ehlinger - CEO - ResPower, Inc - 866-737-7697 - www.ResPower.com
- 500+ GHz Self-Service Super-Computer from $0.50/GHz*Hr
- (yes, five hundred gigahertz. point-five terahertz.)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: SVN ignores svn:ignore during svn add
Posted by Philip Martin <ph...@codematters.co.uk>.
Early Ehlinger <ea...@respower.com> writes:
> X:\>svn pg svn:ignore .
> *.ignore
svn:ignore only applies to files in the current directory, not those
in subdirectories.
> X:\>dir /s/b test
> X:\test\test.ignore
>
> X:\>svn add test
> A test
> A test\test.ignore
test is a new subdirectory, it won't have an svn:ignore
> Note that --auto-props doesn't seem to affect this:
auto-props doesn't apply to directories, so it cannot be used to set
svn:ignore
> Am I missing something obvious?
Set global-ignores (perhaps only temporarily) in .subversion/config
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org