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

svn:ignore woes

From: Shaun <shaun_at_shaunc.com>
Date: 2006-11-22 05:13:34 CET

        RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL,USER_IN_WHITELIST autolearn
        version1.1-shaunc002
X-Spam-Checker-Version: SpamAssassin 3.1.1-shaunc002 (2006-03-10) on

        shaunc.com

Hi folks,

I'm trying to set the svn:ignore properties for a working directory, in
particular I want to ignore robots.txt. I'm following along with the
example in the book, chapter 7, but I must be doing something wrong.
Please bear with me, I've been in love with svn since February but this
is my first time trying to set svn:ignore.

In the following dialogue, .svnignore is a brand new file (not under
version control), and robots.txt is under version control but has been
modified and I want to ignore it.

[user@host htdocs]$ svn propget svn:ignore
[user@host htdocs]$ cat .svnignore
.svnignore
robots.txt
[user@host htdocs]$ svn propset svn:ignore -F .svnignore .
property 'svn:ignore' set on '.'
[user@host htdocs]$ svn propget svn:ignore .
.svnignore
robots.txt
[user@host htdocs]$ svn status
 M .
M robots.txt
[user@host htdocs]$ svn revert robots.txt
Reverted 'robots.txt'
[user@host htdocs]$ svn status
 M .
[user@host htdocs]$ svn ci -m "Updating ignore props"
Sending .
Committed revision 303.
[user@host htdocs]$ echo "foo" >>robots.txt
[user@host htdocs]$ echo "arf" >>.svnignore
[user@host htdocs]$ svn status
M robots.txt
[user@host htdocs]$ svn diff
Index: robots.txt
===================================================================
--- robots.txt (revision 303)
+++ robots.txt (working copy)
@@ -1,2 +1,3 @@
 User-agent: *
 Disallow: /
+foo
[user@host htdocs]$

The changes to the .svnignore file are being ignored, as directed; but
if I change robots.txt, it flags as modified.

What am I missing? Is it not possible to ignore changes to files that
are already under version control?

Thanks!

Shaun

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 22 05:11:56 2006

This is an archived mail posted to the Subversion Users mailing list.