You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Shaun <sh...@shaunc.com> on 2006/11/22 04:13:34 UTC

svn:ignore woes

	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


Re: svn:ignore woes

Posted by Shaun <sh...@shaunc.com>.
	RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL,USER_IN_WHITELIST autolearn=no 

	version=3.1.1-shaunc002
X-Spam-Checker-Version: SpamAssassin 3.1.1-shaunc002 (2006-03-10) on 

	shaunc.com

On Wed, 22 Nov 2006 23:50:05 -0700
bob@proulx.com (Bob Proulx) wrote:

> Ryan Schmidt wrote:
> > Shaun wrote:
> > >What am I missing? Is it not possible to ignore changes to files that
> > >are already under version control?
> > 
> > I think that's correct.
> 
> Idea: You should be able to remove it from version control and then it
> would be ignored.
> 
> Bob

My thanks to Ryan Schmidt and Bob Proulx. Indeed, it seems that files
which are already versioned cannot be ignored. svn rm'ing and
maintaining multiple copies wasn't what I'd hoped to have to do, but
it'll work!

Thanks, 

And happy Thanksgiving to those who observe it, I for one am thankful
for svn on this holiday,

Shaun

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

Re: svn:ignore woes

Posted by Bob Proulx <bo...@proulx.com>.
Ryan Schmidt wrote:
> Shaun wrote:
> >What am I missing? Is it not possible to ignore changes to files that
> >are already under version control?
> 
> I think that's correct.

Idea: You should be able to remove it from version control and then it
would be ignored.

Bob

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

Re: svn:ignore woes

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 21, 2006, at 22:13, Shaun wrote:

> [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?

I think that's correct.



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