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

Re: [TSVN] "missing" directories are deleted during commit

From: SteveKing <steveking_at_gmx.ch>
Date: 2004-12-20 19:10:26 CET

J. Richard Mills wrote:
> Is "svn remove" the normal resolution for files/directories that are
> "missing" from a local sandbox?


> One of my Tortoise users ran into a situation recently that was not as I
> expected. He was having a problem with some non-compiling source in a
> directory, so he just nuked the directory from his local sandbox with
> windows browser ("del" key). I usually refer to this as "pruning the
> cruft" -- getting rid of local directories that have stuff you don't
> care about right now. I've used it as a local space optimization
> technique in CVS for years. SVN reports this as "missing" during normal

You must be aware that SVN is not CVS. Not even close. Yes, it claims to
be the successor of CVS, but that doesn't mean it works exactly like it.
The only thing those two have in common are the same developers (some of
them at least) and (almost) the same commands for the command line
client. Apart from that, they're completely different.

> status checks. However, when he committed his files later, Tortoise
> executed a "delete" command to the repository, thereby removing the
> directory for everyone else. NOT what we had in mind.

If you commit a missing file, it will get deleted.

> When done from the command line, the commit operation generates an error
> if there are "missing" directories. The error is useless
> ("blah/blah.java" not locked), but at least it doesn't remove the files
> from the server.

That depends: if you commit a missing file explicitely (you give the
filename directly to the CL client), then yes, you'll get an error
message. But if you commit the parent directory (which has missing
directories/files in it) they will get deleted too.
About your error message: run 'svn cleanup' and try again - the error
message might be gone and the missing items will get deleted in the commit.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Dec 20 19:11:46 2004

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

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