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

Re: another ignore question

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Sat, 29 Nov 2008 01:00:31 +0000

2008/11/28 php.baker <php.baker_at_gmail.com>:
> I know this question has been asked numerous times, but I cant find
> any helpful answers....
>
> I have the following dir structure:
> -app
> --dir1
> --dir2
> --tmp
> ---cache
> ----views
> ----persistent
> ----models
> ---logs
> ---sessions
> ---tests
> --dir3
>
> I want to ignore all files in in my tmp directory and in tmp sub
> folders, but still keep the folders intact. I have tried the following
> pattern as well as various derivatives that involved adding and
> removing forward slashes and asterisks, but nothing seems to have ANY
> affect.
>
> Global ignore pattern:
> *tmp/cache/models* *tmp/cache/persistent* *tmp/cache/views* *tmp/logs*
> *tmp/sessions* *tmp/tests* *empty
>
> and in the "Subversion configuration file":
> global-ignores = *tmp/cache/models* *tmp/cache/persistent* *tmp/cache/
> views* *tmp/logs* *tmp/sessions* *tmp/tests* *empty
>
>
> I have read the manual, and I am not trying to ignore versioned files
> I am trying to ignore these files when i do an import, and when I am
> committing changes from a working copy.

The other solution is to set the svn:ignore property for each of these
folders to *
You have to do it for each tmp folder, but it will definitely work.

Global ignores seem to be aimed mainly at filenames - the svn book
doesn't mention slashes at all, nor give any examples for how to do
that, so I guess it is a feature not well tested in that way. I have
mailed the svn user list for clarification on this.

Silly question, but why do you want the tmp folders versioned in the
first place? Can you get your build system to create them if they
don't exist?

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-11-29 02:00:42 CET

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

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