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

overwrite/convert a working directory

From: Avram Dorfman <dorfman_at_est.org>
Date: 2006-03-02 21:15:47 CET

Hello,

I have this situation I keep running into that SVN doesn't seem to be
able to handle. I'd like to know what other people do when this comes
up.

Simply put, I need to be able to replace a working sub-directory with
another version of itself. The other version comes from a build
process elsewhere. If it were just a file, I would simply overwrite
the old file with the new one. But I can't do that with a directory b/
c the directory loses it's .svn structures, and svn will no longer
operate on it - it's not a working directory any more.

The directory itself is deeply nested; I can't simply overwrite each
individual file. The "hack" solution I'm currently using is to tar up
the new source, and expand the tar on top of the new one.

However, it seems perfectly valid to me that I should be able to take
a non-working subdirectory that is in a working directory, and tell
SVN to just go ahead and work on it as if it were an up-to-date
working directory. Either that or there should be an operation that
says "take this and make it a working directory, but don't mess with
any of the actual contents".

It also seems to me that I would be in the same situation if I wanted
to restore to an older version of a subdirectory, and make it the
latest version. I can't just update to the older version b/c I won't
be able to commit that update, right? How do I get the older version
of a directory to *replace* the newer version of the same directory?

Thanks,
Avram

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 2 21:20:08 2006

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.