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

Re: [TSVN] Bug - Directory Already exists

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-06-24 17:05:53 CEST

alex.kaminski@bell.ca wrote:
> Doesn't that seem to be a bit too radical to the point of making
> working with SVN awkward? In our case the whole source tree is so
> big that it takes too long to check-out everything from SVN, it's
> common for people to retrieve parts of the tree, and a couple weeks
> down the road request the whole tree.

Yes, that is common practice and it generally works well.

> I don't see a reason to stop the checkout process in the following
> situations:
> -Empty Directory (possibly with other empty sub directories)
> (these get created by tortoise when previous checkout gets
> interrupted)

If you interrupt an operation you need to do a 'Cleanup' afterwards to
get rid of residual mess.

> -Identical files + dirs as the files in the SVN trunk

Well how did they get there? If you have unversioned files or folders
with the same name as versioned ones, then of course it won't work.
Imagine that you have spent 2 days working on a new file. You update
your working copy and find that someone else just happened to add their
own file with the same name a few minutes ago, so yours gets
overwritten. Subversion does not do that. Unversioned items _never_ get
overwritten with versioned ones. SVN cannot tell whether the unversioned
file is valuable or not, so it plays safe and stops.

The moral is, don't put a load of unversioned files in a folder and then
expect SVN to simply write over the top of them. It will not work.

> If the files are different or of a previous version, the user should
> be prompted on how to continue?

If they are simply older versions (controlled by Subversion) then they
will be updated automatically.

What you may have done is taken an unversioned folder MyWC, created
subfolders A and C and checked out trunk/A and trunk/C into them. Then
you try to check out the whole trunk into MyWC and get a pile of errors.
Workaround: First use 'Update to revision' to check out only the top
level folders into MyWC. Then update the just sub folders you are
interested in. If you then update MyWC you will get the entire trunk.

> A setting could be included to minimize such prompting as well.
> But a simple little enchantment of ignoring such an error and
> continuing with synch would go far.

But in any case, you are asking this on the wrong list. TSVN has
absolutely no control over this. It's all handled by the Subversion
libraries, so if you don't like Subversion's behaviour you will have to
ask on the users@subversion list.

Simon

-- 
       ___
  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 Fri Jun 24 17:04:56 2005

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.