As I understand it, the command to ignore the content of a directory using SVN is this:
svn propset svn:ignore '*' tmp/
This should set the ignore property on the content of the tmp directory, right? In other words, the wildcard is set to be the ignore value on the tmp directory. Trouble is, here’s what is happening on my Windows box:
> svn propset svn:ignore '*' ./tmp property 'svn:ignore' set on 'app' property 'svn:ignore' set on 'config' property 'svn:ignore' set on 'db' property 'svn:ignore' set on 'doc' property 'svn:ignore' set on 'lib' property 'svn:ignore' set on 'log' property 'svn:ignore' set on 'nbproject' property 'svn:ignore' set on 'public' [etc...]
That’s not right. Am I doing something wrong (or perhaps going insane), or is my svn on Windows broken?
Some notes:
- The machine is running Windows Vista SP1
- Setting this property via Tortoise works perfectly.
- I’m using the Collabnet binaries for Windows:
> svn --version
svn, version 1.5.2 (r32768)
compiled Aug 28 2008, 19:05:34
Update: I’ve have just tried this on a Windows XP machine and it works as expected. So either this is a Vista specific issue, or there is a problem with my Vista configuration. Is anyone else able to reproduce this problem on Vista? I have just spotted that Vista isn’t listed as one of the supported platforms on the CollabNet downloads page.
The command should be working as you expect.
The
*is getting globbed, which it shouldn’t be doing. So, you’re running:svn propset svn:ignore [value] app config db doc lib log nbproject public ... tmp(since app was the first folder affected, I’m guessing there’s another folder before it).
2 things you can try:
svn propset svn:ignore tmp -F .svnignoresvn propset svn:ignore tmp. This should open your default text editor (if configured) to allow you to write and save the list.Reply to comment
Since you’re now attempting to correct the setting,
propeditandpropdelwould work fine — especially if you have other changes within the directory.But, if you don’t have any other changes to worry about (check
svn st), it’ll be faster usingsvn revert -Randsvn propset.