RE: RE: Any difference between results of checkout and update ?
From: Rob Hubbard <Rob.Hubbard_at_celoxica.com>
Date: 2006-09-19 16:58:21 CEST
As a guideline, SVN will tend not to destroy information. In a clean working copy (WC), an update to another revision should produce another clean working copy. However, if there's a local file that is not in the repository, SVN will not delete it; such a file could even "block" an update (if SVN wishes to add a file to your WC, deleted in an earlier revision or added in a later revision in the repository, but a file of that name already exists locally). In a clean WC, that's not an issue.
SVN does seem to be very good at updating (or "downdating"). I have had many an occasion to do this, and have not had a problem. I have to say that I trust the tool.
What results are puzzling you? If your testing involves doing a build, are you seeing the result of timestamp dependency problems (you shouldn't be, because the modified time on a file should be that when it was updated), or some other problem that is not due to SVN? Perhaps you could ensure that you always do a "clean build" or "rebuild" of your project (or whatever the equivalent is for the kind of work that you're doing).
I wonder whether you're making assumptions about what SVN can "see". An update on a directory will only update directories and files below, not above (".."). A working copy may contain a mixture of revisions. Are you updating from a sufficiently high directory (i.e. do you need to "cd .."). You might wish to ensure that your project directory reports a "pure revision" from the command "svnversion ." at the root of your project subtree (i.e. that you get something simple like "1234" and not "1000:1234MS").
Note also that there was a bug in SVN command-line client on Windows, where "..\.." would be treated as "."; I don't know if that's fixed yet; it is still broken in version 1.2.3. (Linux was okay.)
I can't think of anything else that might be causing your puzzlement, and it may be none of these. I see that you've had some other ideas sent to you though...
If you solve it, please post your answer.
Rob.
-----Original Message-----
From: Rob Hubbard
> I would not expect checkout or update to differ
Thanks (and to Felix)
> except in local modifications
I had my myopia blinkers on - totally forgotten about that 8-)
> I'm curious as to what prompted your question.
I'm trying to recreate previous revisions (untagged) as part of some
---------------------------------------------------------------------
_____________________________________________________________________
This email and any files transmitted with it are confidential and
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.