[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Listman <listman_at_burble.net>
Date: Tue, 6 May 2008 08:50:59 -0700

On May 5, 2008, at 11:08 PM- May 5, 2008, Karl Fogel wrote:

> Listman <listman_at_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_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-06 17:51:47 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.