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

Re: Re: svn:global-ignores

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Wed, 18 Sep 2013 16:07:42 +0100

On 18 September 2013 14:36, Dan Lasley <dlasley_at_milleredge.com> wrote:
> OK, let me try again.
>
> If I look at the TSVN properties in any folder in c:\projects\ it has svn:global-ignore set to ignore *.OBJ and *.LST.
>
> When I go to Import my project for the first time, uploading it to my web-host repository, the LST and OBJ files get uploaded and "versioned". This is not the desired result.
>
> What do I need to do to get these settings to apply?

Any svn: property applies only to a versioned working copy. At the
time when you do the import you have no working copy as you are
creating a new project in the repository, so there is nowhere to hang
these properties onto. The point of these properties is to allow you
to ignore files within an already-versioned working copy structure.
They do not and cannot work on import.

By contrast the global ignores in TSVN's settings are always there and
can be applied to imports.

Subversion has no mechanism, when you import a new project into the
repository, to tell you what files to ignore. You can set up a
server-side pre-commit hook to reject commits which include such
files, but it would be a sledgehammer solution and occasionally you
may need to version a file which would normally be ignored.

Personally I never use import at all. The manual describes a 2-stage
import process whereby you first create an empty folder in your
repository and checkout on top of your existing project folder. This
makes the project folder, but not its content, versioned. You can then
add svn:ignore properties, and also use the Add dialog to cherry pick
which files you want to include.

Simon

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-09-18 17:07:48 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.