You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brad O'Hearne <br...@neurofire.com> on 2005/03/16 15:28:00 UTC

excludes/ignores on svn commands

The question: Is there any way, via some config file, to have the svn 
commit and status commands (for that matter all svn commands) 
automatically exclude or ignore specific directories and/or files when 
invoked?

The reason: something probably common to everyone -- when I build a 
project, the build creates compiled files within the project that are 
not to be stored in subversion (or likewise, users who use IDE's may 
have files created by the IDE which aren't to be stored in subversion). 
I want svn to *always* ignore these. While I understand that following 
proper policy will avoid accidental commits, with large commits, it 
still is a nuisance. In addition, it is almost inevitable that at some 
point its going to happen, and especially with lesser experienced 
developers and those new to subversion. In addition, automation on top 
of subversion generally increases the chances of an accident occurring. 
For example, Eclipse will ask at commit time if all files not under 
subversion's control should be added -- a simple click yes will push all 
that junk plus .project and .classpath files into subversion. Its an 
easy mistake to make, and with a large commit, a pain to have to 
manually filter through the list of files, checking / unchecking boxes.

It would be *really* cool to have an svn.xml file or something like that 
which svn looks at to determine what directories and files it should 
operate on. Hopefully, I've just displayed my ignorance of something 
subversion already does, and everyone can enlighten me to this feature....

Thoughts?

B

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

Re: excludes/ignores on svn commands

Posted by Brad O'Hearne <br...@neurofire.com>.
The question: is there any productive use of sarcasm? :-)

That's what I was looking for, thanks. :-)

Brad

Steve Greenland wrote:

>On Wed, Mar 16, 2005 at 10:28:00AM -0500, Brad O'Hearne wrote:
>  
>
>>The question: Is there any way, via some config file, to have the svn 
>>commit and status commands (for that matter all svn commands) 
>>automatically exclude or ignore specific directories and/or files when 
>>invoked?
>>    
>>
>
>The question: is there a reason that the 'global-ignores' configuration
>option and/or the svn:ignore property doesn't do what you want?
>
>http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2
>http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.3
>
>Smart-assedly yours,
>Steve
>
>  
>


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

Re: excludes/ignores on svn commands

Posted by Steve Greenland <st...@lsli.com>.
On Wed, Mar 16, 2005 at 10:28:00AM -0500, Brad O'Hearne wrote:
> The question: Is there any way, via some config file, to have the svn 
> commit and status commands (for that matter all svn commands) 
> automatically exclude or ignore specific directories and/or files when 
> invoked?

The question: is there a reason that the 'global-ignores' configuration
option and/or the svn:ignore property doesn't do what you want?

http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2
http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.3

Smart-assedly yours,
Steve

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)

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