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

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: Andy Dingley [mailto:andy.dingley@talgentra.com]
Sent: 19 September 2006 15:13
To: users@subversion.tigris.org
Subject: RE: Any difference between results of checkout and update ?

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
regression testing. The results I'm seeing are puzzling me, as if some
changes aren't rolling back when I step back through revisions with svn
update -r.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service, on behalf of Celoxica Ltd.

This email and any files transmitted with it are confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed. If you have received
this in error, please contact the sender and delete the material
immediately. Whilst this email has been swept for viruses, you
should carry out your own virus check before opening any
attachment. Celoxica Ltd accepts no liability for any loss or
damage which may be caused by software viruses or interception
or interruption of this email.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 19 16:59:25 2006

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