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

RE: Add files to work copy - ignoring file types for versioning does not function

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 14 Apr 2010 11:45:17 -0400

> "The easy way is to add the property to the root folder of your WC and
> tell TSVN to apply it recursively."
>
> But thats exactly what I tried first (see above...): I added a
> "svn:ignore *.exe" property to the "trunk" folder AND checked the
> option "apply it recursively"! (But then the subfolders DONT have this
> property because they are not controlled yet!!!)

Add all your folders first. Then add the property. As you say, you can't add a property to unversioned folders.

What I usually do when adding a new project is to remove all the files that I don't want versioned... then add them all. After that is done you can add your ignores recursively.

> So, then I selected "add" to put files under version control excluding
> all "*.exe" in all subfolders. But ALL files were shown in the add
> dialog! So nothhin was ignored.
> If you mean to put all files under verison control FIRST, then I would
> have to remove the *.exe-files afterwards, but I dont know how and I
> think thats no good way.

Add the folders first as I said above.

> I cant just select all these folders I want to ignore... because my
> trunk folders has 5 more folders in it, each including obj and bin
> folders AND other files to be excluded.
> So I need folder AND file ignoring.
>
> Felix

You seem to be making this harder than it needs to be. Basic steps:

1. do an add from the route of your project folder.
2. Deselect the root folder which will deselect everything in it.
3. Select the folders you want included in svn
4. Do an add again5.
5. Right click on folders you want to exclude right click and choose "Add to ignore list". (the folder and all its contents will be removed.
6. Right click on a .exe in a folder you want in version control. Choose "Add to ignore list".. then choose *.exe... all of the .exe's in that folder will be removed from the list. Repeat as needed. Note... you should only need to right click on one file with the extension that you want to remove within each folder that you want included.

BOb

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2582431

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-04-14 17:43:52 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.