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

Re: delete file from repository, not locally?

From: Gavin Lambert <tsvn_at_mirality.co.nz>
Date: 2006-09-14 07:59:23 CEST

Quoth Barry Gershenfeld:
> I see a danger with this: When you delete the file from the repository,
> that event gets propagated to everyone who does an svn update. That
> is, their copy of this file will be deleted.

Only if they don't have any local modifications. If their copy is
different from the versioned one then it will be retained (but marked as
unversioned). If they don't have any local modifications, then yes, it
will be deleted, but this doesn't constitute a loss of data as they'll
be able to recover it either from someone else who has the file or from
the repository, by requesting it from a prior revision.

> I thought that maybe something could be done with the ignore property to
> prevent this, but, as far as I can tell, the ignore list is a
> client-side feature--I can't make it show up in any other working copy.

svn:ignore properties are stored in the repository, but only apply to
the specific folder that you've applied them to. (Setting an ignore
property on a file has no effect, and they're not recursive.) So
they're not purely client-side.

However just because a file matches an ignore doesn't mean it won't get
committed. If someone explicitly names an ignored file and requests to
add it (which can occur inadvertently when adding folders), then it will
be added regardless. This is a feature, since you may for example want
to ignore .exe files (for example) most of the time, but still have one
or two specific cases versioned.

Especially with older versions of Tortoise, it's a good idea to add new
folders as they're created, or failing that specifically adding just the
folder (through right-click on the Commit screen, if you waited until
then), rather than letting it do its default. Sometimes it will still
list supposedly ignorable files if they're contained in an unversioned
folder.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Sep 14 08:00:03 2006

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