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

RE: are directories versioned?

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-01-03 15:54:44 CET

-----Original Message-----
From: erh@swapsimple.com [mailto:erh@swapsimple.com]

I mean revert changes related to the additional and removal of
files, i.e. undo changes to the contents of the directory. There
have been several times where I've wanted to undo moving a file,
but still keep the changes to contents of the file.
-------------------------

Here you're running up against the point that Suversion has no such "undo"
action. By judiciously selecting what revision you check out, you can *look
at* the past, but you can't *reverse* it. All you can do is check in a new
version which *looks* like a past version.

There's also the problem that the Subversion database has no concept of
moving a file. "svn move A B" is really "svn copy A B; svn delete A". And
copies aren't revertable in the same way that moves are. (I gather that
they're planning to add native "moves" into the database system.)

Though I don't see this as much of a problem in practice -- If you want to
selectively reverse changes that have to be made, you're going to have to
give the SCM system some pretty detailed instructions in any case, so I
don't see much problem with doing a series of "svn copy -r http://... A/B/C"
commands to assemble the structure you want.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 3 15:57:33 2005

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