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

Re: svn update problem

From: Mark Parker <mark_at_msdhub.com>
Date: 2005-05-31 23:20:53 CEST

Dmitry Lumpov wrote:
> However, what makes me confused, that 'svn update' is not VSS
> 'GetLatestversion". The reason is in VSS
> if you do 'GetlatestVersion' it will overwrite your changes (if you made)
> and bring yourself exactly to the latest version from repository - doesn't
> matter whether your local changes are important or not.
> 'svn update' does the same, if we specify a subversion number -
> it will overwrite your latest changes to bring you to the version
> you specified. However, just calling 'svn update' makes me confused,
> because it says - "you are at version n", but actually it is not,because
> repository still has version n, but I have changes in my local copy.
> I suggest, may be change this message to "version y with changes",
> as you proposed, and then everything becomes clear.

You're incorrect. "svn update" and "svn update -r xx" are the same,
except that "svn update" without the "-r" updates to the latest version.
Neither will discard any local modifications that you've made.

> I am just talking of robust way of synchronization between repository and local
> copy. Also, since 'svn update -r<n>' and 'svn update' commands have different
> semantics, it could be good to explain it in the manual.

But they don't have different sematics. "svn update" is "svn update -r

> Exactly. To undo my changes, I want to use repository to overwrite them.
> I think it is pretty convenient, because keeps synchronized all the time.
> Imagine, we revert to our prev local state (or changes) by using 'svn revert',
> and at the same time somebody made changes in repository.
> Now, to make sure that we are synchronized, we need not to forget to use
> 'svn update' command, then work on merges. So, it may lead to lots
> of confusions.

Undoing local mods and retrieving changes are two separate operations.
There isn't a single operation that means "make my working copy exactly
like the latest version in the repository, whatever that may be". It's
the combination of "svn revert" to undo local mods and "svn up" to bring
in changes from the repository.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 31 23:22:58 2005

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.