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

Re: Quirk with svn:ignore

From: Geoff Hoffman <ghoffman_at_cardinalpath.com>
Date: Mon, 19 Mar 2012 10:11:28 -0700

On Mon, Mar 19, 2012 at 9:32 AM, Giulio Troccoli <
giulio.troccoli_at_mediatelgroup.co.uk> wrote:

> Do you mean that the files are shown with an A in the first column?

No, they're shown as

? logs/error.log
? logs/access.log

But they're not automagically ignored, even though they match "logs/*"
which successfully is applied as an svn:ignore pattern on trunk.

On Mon, Mar 19, 2012 at 9:35 AM, Mark Phippard <markphip_at_gmail.com> wrote:

> That is exactly how the feature is supposed to work. Described in book
> here:
>
> http://svnbook.red-bean.com/en/1.7/svn.advanced.props.special.ignore.html
>

Mark, I believe you, however I don't see which part of the docs you link to
addresses this case...

This part:

*
> Matches any string of characters, including the empty string

indicates it should work regardless where it's used.

And this part:

[image: [Tip]]
>
> Even if svn:ignore is set, you may run into problems if you use shell
> wildcards in a command. Shell wildcards are expanded into an explicit list
> of targets before Subversion operates on them, so running *svn SUBCOMMAND
> ** is just like running *svn SUBCOMMAND file1 file2 file3*
>

indicates that even cd logs && svn propset svn:ignore * . should fail if
there are no files inside of logs, correct? But it doesn't fail it works in
that case.

It seems to me that if my shell is indeed expanding asterisk character to a
list of files to ignore, then ignore * on logs should fail similarly until
explicit files are there to pass to svn:ignore command.

I'm attempting to ignore all future files & folders, "*", inside a folder
that is empty, before any files exist inside it. It's always worked for me
just putting ignore * on logs folder directly, I just never tried putting
it "one level up" before and was kind of confused as to why it didn't work.

-- 
This email, including any attachments, is for the sole use of the intended 
recipient and may contain confidential information. If you are not the 
intended recipient, please immediately notify us by reply email or by 
telephone, delete this email and destroy any copies. Thank you.
Received on 2012-03-19 18:12:10 CET

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.