You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com> on 2007/10/18 15:13:07 UTC

Svn:ignore property and subfolders

My experiementation tells me that I cannot specify an ignore property at
a root folder that is effective for all subfolders.  Am I correct, or
merely failing to define the proper RegEx?
 
I want to define "svn:ignore" on "/MyProject", such that the files and
folders will be excluded for everything below that folder without
setting a property on every subfolder.  Thus, "*.user" would be ignored
everywhere, not just in "/MyProject".
 
 
--
David 


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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


Re: Svn:ignore property and subfolders

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 18, 2007, at 13:08, Bicking, David (HHoldings, IT) wrote:

> Ryan Schmidt wrote:
>
>> On Oct 18, 2007, at 10:41, Bicking, David (HHoldings, IT) wrote:
>>
>>> Rob van Oostrum wrote:
>>>
>>>> On 10/18/07, Bicking, David (HHoldings, IT) wrote:
>>>>
>>>> as far as I'm aware, you are correct, and what you want is not
>>>> supported.
>>>
>>> So, I guess that means I cannot define some way to automatically
>>> ignore garbage from imported projects, and must continue to clear
>>> those files out before I import.  Visual Studio produces lots of
>>> garbage, like *.suo, *.user, bin/, obj/, *.scc, etc. that I do not
>>> expect many people to remember to remove before the initial
>>> import.  How do I go about initiating a feature request?
>>
>> You could install a pre-commit hook preventing the commit of
>> any *.suo, *.user or *.scc file, or bin/ or obj/ directory.
>> You can print an error message reminding the user to remove
>> those files before committing.
>
> I thought of that, and it is very clunky.  I also saw a reply that
> suggested setting configurations on the workspace side, but that would
> require every user to be set up for it, which is more error prone  
> than I
> like (though I'll seriously consider both of these options).

It is, however, how Subversion is at this time. Configurations are  
client-side. Users' tendencies to forget to set up their  
configuration, or set it up wrong, are to be mitigated by installing  
a pre-commit hook which prevents the user from doing things you don't  
want them to do.


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

RE: Svn:ignore property and subfolders

Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
 
> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2007b@ryandesign.com] 

> On Oct 18, 2007, at 10:41, Bicking, David (HHoldings, IT) wrote:
> 
> > Rob van Oostrum wrote:
> >
> >> On 10/18/07, Bicking, David (HHoldings, IT) wrote:
> >>

> >> as far as I'm aware, you are correct, and what you want is not 
> >> supported.
> >
> > So, I guess that means I cannot define some way to automatically 
> > ignore garbage from imported projects, and must continue to clear 
> > those files out before I import.  Visual Studio produces lots of 
> > garbage, like *.suo, *.user, bin/, obj/, *.scc, etc. that I do not 
> > expect many people to remember to remove before the initial 
> import.  
> > How do I go about initiating a feature request?
> 
> You could install a pre-commit hook preventing the commit of 
> any *.suo, *.user or *.scc file, or bin/ or obj/ directory. 
> You can print an error message reminding the user to remove 
> those files before committing.
> 

I thought of that, and it is very clunky.  I also saw a reply that
suggested setting configurations on the workspace side, but that would
require every user to be set up for it, which is more error prone than I
like (though I'll seriously consider both of these options).

--
David


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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


Re: Svn:ignore property and subfolders

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 18, 2007, at 10:41, Bicking, David (HHoldings, IT) wrote:

> Rob van Oostrum wrote:
>
>> On 10/18/07, Bicking, David (HHoldings, IT) wrote:
>>
>>> My experiementation tells me that I cannot specify an ignore  
>>> property
>>> at a root folder that is effective for all subfolders.  Am I  
>>> correct,
>>> or merely failing to define the proper RegEx?
>>>
>>> I want to define "svn:ignore" on "/MyProject", such that the  
>>> files and
>>> folders will be excluded for everything below that folder without
>>> setting a property on every subfolder.  Thus, "*.user" would be
>>> ignored everywhere, not just in "/MyProject".
>>
>> as far as I'm aware, you are correct, and what you want is
>> not supported.
>
> So, I guess that means I cannot define some way to automatically  
> ignore
> garbage from imported projects, and must continue to clear those files
> out before I import.  Visual Studio produces lots of garbage, like
> *.suo, *.user, bin/, obj/, *.scc, etc. that I do not expect many  
> people
> to remember to remove before the initial import.  How do I go about
> initiating a feature request?

You could install a pre-commit hook preventing the commit of any  
*.suo, *.user or *.scc file, or bin/ or obj/ directory. You can print  
an error message reminding the user to remove those files before  
committing.

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

RE: RE: Svn:ignore property and subfolders

Posted by ni...@planet.nl.
Before the initial checkin you can specify default properties on folders and files. Look at your subversion config file.

Hth,

Nick Stolwijk


-----Original Message-----
From: Bicking, David (HHoldings, IT) [mailto:David.Bicking@thehartford.com]
Sent: Thu 10/18/2007 5:41 PM
To: users@subversion.tigris.org
Subject:  RE: Svn:ignore property and subfolders
 

> -----Original Message-----
> From: Rob van Oostrum [mailto:rvanoo@gmail.com] 
> 
> as far as I'm aware, you are correct, and what you want is 
> not supported.
> 

So, I guess that means I cannot define some way to automatically ignore
garbage from imported projects, and must continue to clear those files
out before I import.  Visual Studio produces lots of garbage, like
*.suo, *.user, bin/, obj/, *.scc, etc. that I do not expect many people
to remember to remove before the initial import.  How do I go about
initiating a feature request?


> On 10/18/07, Bicking, David (HHoldings, IT) 
> <Da...@thehartford.com> wrote:
> > My experiementation tells me that I cannot specify an 
> ignore property 
> > at a root folder that is effective for all subfolders.  Am 
> I correct, 
> > or merely failing to define the proper RegEx?
> >
> > I want to define "svn:ignore" on "/MyProject", such that 
> the files and 
> > folders will be excluded for everything below that folder without 
> > setting a property on every subfolder.  Thus, "*.user" would be 
> > ignored everywhere, not just in "/MyProject".
> >
> >
> > --
> > David
> >
> >
> > 
> **********************************************************************
> > *** This communication, including attachments, is for the exclusive 
> > use of addressee and may contain proprietary, confidential and/or 
> > privileged information.  If you are not the intended recipient, any 
> > use, copying, disclosure, dissemination or distribution is strictly 
> > prohibited.  If you are not the intended recipient, please 
> notify the 
> > sender immediately by return e-mail, delete this communication and 
> > destroy all copies.
> > 
> **********************************************************************
> > ***
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
> 


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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



Re: Svn:ignore property and subfolders

Posted by Erik Huelsmann <eh...@gmail.com>.
On 10/18/07, Bicking, David (HHoldings, IT)
<Da...@thehartford.com> wrote:
>
> > -----Original Message-----
> > From: Rob van Oostrum [mailto:rvanoo@gmail.com]
> >
> > as far as I'm aware, you are correct, and what you want is
> > not supported.
> >
>
> So, I guess that means I cannot define some way to automatically ignore
> garbage from imported projects, and must continue to clear those files
> out before I import.  Visual Studio produces lots of garbage, like
> *.suo, *.user, bin/, obj/, *.scc, etc. that I do not expect many people
> to remember to remove before the initial import.  How do I go about
> initiating a feature request?

How about setting global-ignores in your ~/.subversion/config file?
(Or, if you work on Windows %APPDATA%/Subversion/config.)

bye,

Erik.

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

RE: Svn:ignore property and subfolders

Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
> -----Original Message-----
> From: Rob van Oostrum [mailto:rvanoo@gmail.com] 
> 
> as far as I'm aware, you are correct, and what you want is 
> not supported.
> 

So, I guess that means I cannot define some way to automatically ignore
garbage from imported projects, and must continue to clear those files
out before I import.  Visual Studio produces lots of garbage, like
*.suo, *.user, bin/, obj/, *.scc, etc. that I do not expect many people
to remember to remove before the initial import.  How do I go about
initiating a feature request?


> On 10/18/07, Bicking, David (HHoldings, IT) 
> <Da...@thehartford.com> wrote:
> > My experiementation tells me that I cannot specify an 
> ignore property 
> > at a root folder that is effective for all subfolders.  Am 
> I correct, 
> > or merely failing to define the proper RegEx?
> >
> > I want to define "svn:ignore" on "/MyProject", such that 
> the files and 
> > folders will be excluded for everything below that folder without 
> > setting a property on every subfolder.  Thus, "*.user" would be 
> > ignored everywhere, not just in "/MyProject".
> >
> >
> > --
> > David
> >
> >
> > 
> **********************************************************************
> > *** This communication, including attachments, is for the exclusive 
> > use of addressee and may contain proprietary, confidential and/or 
> > privileged information.  If you are not the intended recipient, any 
> > use, copying, disclosure, dissemination or distribution is strictly 
> > prohibited.  If you are not the intended recipient, please 
> notify the 
> > sender immediately by return e-mail, delete this communication and 
> > destroy all copies.
> > 
> **********************************************************************
> > ***
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
> 


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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


Re: Svn:ignore property and subfolders

Posted by Rob van Oostrum <rv...@gmail.com>.
as far as I'm aware, you are correct, and what you want is not supported.

On 10/18/07, Bicking, David (HHoldings, IT)
<Da...@thehartford.com> wrote:
> My experiementation tells me that I cannot specify an ignore property at
> a root folder that is effective for all subfolders.  Am I correct, or
> merely failing to define the proper RegEx?
>
> I want to define "svn:ignore" on "/MyProject", such that the files and
> folders will be excluded for everything below that folder without
> setting a property on every subfolder.  Thus, "*.user" would be ignored
> everywhere, not just in "/MyProject".
>
>
> --
> David
>
>
> *************************************************************************
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information.  If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited.  If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

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

RE: Svn:ignore property and subfolders

Posted by ni...@planet.nl.
You can specify default properties in your subversion config (client side) which gets added when you svn add your files. I don't know of a recursive way to set properties with only svn. With linux, you would use something like:

find . -type d --exec svn ps svn:ignore -F ~/yourignorefile {} \;

Where your ignore file is a carriage return seperated list of values which has to be ignored.

Hth,

Nick Stolwijk

ps. I will answer your question about work in the netherlands tomorrow. Oh, and Denmark doesn't neighbour our country. Germany is between. ;)


-----Original Message-----
From: Bicking, David (HHoldings, IT) [mailto:David.Bicking@thehartford.com]
Sent: Thu 10/18/2007 5:13 PM
To: users@subversion.tigris.org
Subject:  Svn:ignore property and subfolders
 
My experiementation tells me that I cannot specify an ignore property at
a root folder that is effective for all subfolders.  Am I correct, or
merely failing to define the proper RegEx?
 
I want to define "svn:ignore" on "/MyProject", such that the files and
folders will be excluded for everything below that folder without
setting a property on every subfolder.  Thus, "*.user" would be ignored
everywhere, not just in "/MyProject".
 
 
--
David 


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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