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

[BOOK] svn revert == delete + svn update?

From: Ed Swierk <eswierk_at_cs.stanford.edu>
Date: 2004-03-18 00:20:29 CET

Hello,

A note in the "svn revert" section of chapter 3 (draft rev. 9015) is
confusing me.

It says:

"svn revert ITEM has exactly the same effect as deleting ITEM from your
working copy and then running svn update ITEM. However, if you're
reverting a file, svn revert has one very noticeable difference--it
doesn't have to communicate with the repository to restore your file."

As I understand it, this is true only if ITEM has not changed in the
repository since the working copy was last updated. If it has changed,
then deleting the working copy and running svn update ITEM gets the new
version, not the one that svn revert would revert to. Or does svn update
notice that the working copy is gone, and fetch the version as of the last
update rather than the latest version?

I hope someone can enlighten me.

Thanks,
--Ed

-- 
Ed Swierk
eswierk@cs.stanford.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 18 00:26:38 2004

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

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