You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Listman <li...@burble.net> on 2008/05/05 17:22:06 UTC

svn config file: global-ignores = mydir/myfile

Hi, is there a way I can get subversion to ignore a particular file,  
lets call it "myfile" ONLY if it is found inside a known directory,  
lets call it "mydir"

i tried the following in my svn config

 > cat ~/.subversion/config

### Section for configuring miscelleneous Subversion options.
[miscellany]
### Ignore some temp and backup files
global-ignores = *~ *% mydir/myfile

and i have this file in my working copy

 >ls mydir
myfile

but svn status still tries to process it

 > svn status
?      mydir/myfile

i don't want to ignore all myfile files in my working copies only  
those in the mydir dir

TIA!




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

Re: svn config file: global-ignores = mydir/myfile

Posted by Andy Levy <an...@gmail.com>.
On Tue, May 6, 2008 at 1:54 AM, Listman <li...@burble.net> wrote:
>
>  On May 5, 2008, at 6:23 PM- May 5, 2008, Karl Fogel wrote:
>
>
> > Listman <li...@burble.net> writes:
> >
> > > yes i can do that, and thats what i'm currently doing. i was hoping to
> > > find a way to set that up for my users prior to them creating this
> > > kind of data. but thats fine, i can add the prop after the fact easily
> > > enough.
> > >
> >
> > Well, sure -- just add the prop before creating the data.
> >
> > (I guess I'm not understanding how the svn:ignore property fails to
> > address your use case perfectly...?)
> >
>
>  in my env i don't always want to ignore this particular file, only when it
>  appears inside the dir i mentioned. i tried to include the dir as part of
>  the svn:ignore property pattern but it didn't seem to work.

I think you're misunderstanding. You need to set svn:ignore on the
"mydir" directory, to tell it to ignore the "myfile" file.

cd mydir
svn propset svn:ignore mydir .
svn ci

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

Re: svn config file: global-ignores = mydir/myfile

Posted by Listman <li...@burble.net>.
On May 5, 2008, at 11:08 PM- May 5, 2008, Karl Fogel wrote:

> Listman <li...@burble.net> writes:
>>> (I guess I'm not understanding how the svn:ignore property fails to
>>> address your use case perfectly...?)
>>
>> in my env i don't always want to ignore this particular file, only
>> when it
>> appears inside the dir i mentioned. i tried to include the dir as  
>> part
>> of
>> the svn:ignore property pattern but it didn't seem to work.
>
> I don't understand.  It would help a *lot* if you would post  
> transcripts
> of what's actually happening, instead of prose descriptions, though.
>
> If your file F is in directory D, you should set the "svn:ignore"
> property on D, with a value of "F".
>
> Have you read any of the documentation about svn:ignore?
>
> -Karl

actually i did post the transcript in my original message to the list.

my original question was: "can i use the global ignore pattern in the  
subversion config file to ignore a file when it is inside a specified  
dir"

so i tried to use this in my config file

global-ignores = *~ *% mydir/myfile

and got this result with svn

 >ls mydir
myfile

 > svn status
?      mydir/myfile

so including a fragment of the path with the file pattern string in  
the global-ignores line doesn't seem to work, i was wondering if there  
was some escape sequence i could use on the pattern eg: "mydir\/ 
myfile" etc but no dice..

the svn:ignore property works great but my users have to set it on  
"mydir" in the above example after they've created "mydir", so its an  
extra step they have to remember to do. it would be nicer if they  
could specify something in the config file, but anyway..

thx again.



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

Re: svn config file: global-ignores = mydir/myfile

Posted by Karl Fogel <kf...@red-bean.com>.
Listman <li...@burble.net> writes:
>> (I guess I'm not understanding how the svn:ignore property fails to
>> address your use case perfectly...?)
>
> in my env i don't always want to ignore this particular file, only
> when it
> appears inside the dir i mentioned. i tried to include the dir as part
> of
> the svn:ignore property pattern but it didn't seem to work.

I don't understand.  It would help a *lot* if you would post transcripts
of what's actually happening, instead of prose descriptions, though.

If your file F is in directory D, you should set the "svn:ignore"
property on D, with a value of "F".

Have you read any of the documentation about svn:ignore?

-Karl

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

Re: svn config file: global-ignores = mydir/myfile

Posted by Listman <li...@burble.net>.
On May 5, 2008, at 6:23 PM- May 5, 2008, Karl Fogel wrote:

> Listman <li...@burble.net> writes:
>> yes i can do that, and thats what i'm currently doing. i was hoping  
>> to
>> find a way to set that up for my users prior to them creating this
>> kind of data. but thats fine, i can add the prop after the fact  
>> easily
>> enough.
>
> Well, sure -- just add the prop before creating the data.
>
> (I guess I'm not understanding how the svn:ignore property fails to
> address your use case perfectly...?)

in my env i don't always want to ignore this particular file, only  
when it
appears inside the dir i mentioned. i tried to include the dir as part  
of
the svn:ignore property pattern but it didn't seem to work.

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

Re: svn config file: global-ignores = mydir/myfile

Posted by Karl Fogel <kf...@red-bean.com>.
Listman <li...@burble.net> writes:
> yes i can do that, and thats what i'm currently doing. i was hoping to
> find a way to set that up for my users prior to them creating this
> kind of data. but thats fine, i can add the prop after the fact easily
> enough.

Well, sure -- just add the prop before creating the data.

(I guess I'm not understanding how the svn:ignore property fails to
address your use case perfectly...?)

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

Re: svn config file: global-ignores = mydir/myfile

Posted by Listman <li...@burble.net>.
yes i can do that, and thats what i'm currently doing. i was hoping to  
find a way to set that up for my users prior to them creating this  
kind of data. but thats fine, i can add the prop after the fact easily  
enough.

thx!

On May 5, 2008, at 4:58 PM- May 5, 2008, Karl Fogel wrote:

> Listman <li...@burble.net> writes:
>> Hi, is there a way I can get subversion to ignore a particular file,
>> lets call it "myfile" ONLY if it is found inside a known directory,
>> lets call it "mydir"
>
> Well, you could set the svn:ignore property on that directory...
>


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

Re: svn config file: global-ignores = mydir/myfile

Posted by Karl Fogel <kf...@red-bean.com>.
Listman <li...@burble.net> writes:
> Hi, is there a way I can get subversion to ignore a particular file,
> lets call it "myfile" ONLY if it is found inside a known directory,
> lets call it "mydir"

Well, you could set the svn:ignore property on that directory...

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