You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kenneth McDonald <ke...@sbcglobal.net> on 2004/05/25 05:34:19 UTC

Question on global ignores

My ~/.subversion/config file looks like this:

[helpers]
editor-cmd = emacs

[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output.
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store 
*.pyc *.class


After editing some files in a directory under Subversion control,
the contents of the directory looked like this:

README.FIRST.txt        subversion-book.pdf     subversion_config_file~
README.FIRST.txt~       subversion_config_file  svn-commit.tmp~

I did a commit, a 'rm *~', and a 'svn status', which gave me the 
following:

!      README.FIRST.txt~
!      subversion_config_file~

My understanding is that the global-ignores option should have caused
the files ending with '~' to be ignored by 'svn status'. (Are they still
stored in the repository?) This doesn't seem to be happening. Is
this correct behavior? If so, what am I misunderstanding?

Thanks,
Ken


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

Re: Question on global ignores

Posted by "C. Michael Pilato" <cm...@collab.net>.
Kenneth McDonald <ke...@sbcglobal.net> writes:

> I did a commit, a 'rm *~', and a 'svn status', which gave me the
> following:
> 
> !      README.FIRST.txt~
> !      subversion_config_file~
> 
> My understanding is that the global-ignores option should have caused
> the files ending with '~' to be ignored by 'svn status'. (Are they still
> stored in the repository?) This doesn't seem to be happening. Is
> this correct behavior? If so, what am I misunderstanding?

Ignores (global or otherwise) are for unversioned items only.  For
example, the patterns filter out stuff in add and import requests (to
prevent you from making certain unversioned resources into versioned
ones).  For status requests, they filter out unversioned resources
which would otherwise appears with '?' indicators.  But once
versioned, Subversion never ignores an item.

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