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

Re: Can't get ignore pattern to work for subfolders

From: Michael Williamson <findwally_at_gmail.com>
Date: Fri, 26 Sep 2008 14:41:36 +1000

Using global ignores sort of works, by adding one exact folder name (no
asterisk, no slashes) as an item. Problem is some of the folders I'm trying
to ignore under the externals are named things like "bin", which for me
isn't something I want to globally ignore.

Thanks for the suggestion though. Never mind on this route - I posted
separately about using ignore-externals in Check For Modifications / Commit
dialogs.

A temporary workaround might be to restructure my repository: ensure
externals are under trunk (to get the desired link to a specific external
revision) but not under my own project's normal folders.

E.g.
/trunk/myProject/folderA
/trunk/myProject/folderB
/trunk/myProject/code
/trunk/externals

And my working copy becomes:
projectRoot/myProject/...
projectRoot/externals/...

This way I could check for modifications / commit only under myProject,
bypasssing anything in the externals.

Not ideal as "externals" is all code and I would have preferred them to be
under my project's code folder.

- Michael

On Thu, Sep 25, 2008 at 5:21 AM, Stefan Küng <tortoisesvn_at_gmail.com> wrote:

> Michael Williamson wrote:
> > Hi
> >
> > My working copy has a structure like
> > projectRoot/folderA
> > projectRoot/external1
> > projectRoot/external2
> > projectRoot/folderB
> > etc.
> >
> > where external* are 3rd party source trees referenced as svn:externals
> > to separate repositories.
> > Certain other unversioned files / folders get placed in these externals,
> > e.g. precompiled dependencies, build products.
> >
> > I'm trying to have those extra unversioned files / folders inside
> > externals* be ignored, to de-clutter my modified / commit list.
> >
> > The only way I've found that works is to modify the svn:ignore prop on
> > each individual subfolder of external* that contains an extra file /
> folder.
> > This is a bit fiddly, plus I'd rather not modify anything in the
> > external* folder properties (as then they show up modified too).
> >
> > The TSVN help file (specifically section 5.13.1, "ignore") seems to
> > indicate I can ignore subpaths by setting this on the "projectRoot"
> > folder's properties:
> > svn:ignore *external1*
>
> No, the svn:ignore properties only work for the items directly below the
> folder where you've set them.
>
> > But this doesn't work. Tried without the * wildcards too, and tried the
> > full path to the extra subfolder (*external1/Dependencies).
> >
> > Is there a way to do this?
>
> You could use the global ignore patterns in the settings dialog.
>
> Stefan
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.net
>
>
Received on 2008-09-26 06:41:59 CEST

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.