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

Re: accidentally deleted a .svn directory

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-08-10 19:06:32 CEST

On Tue, 2004-08-10 at 11:45, Shaun Batterton wrote:
> For now we are using a common working copy, and someone deleted the .svn
> directory, and the files in that directory have since been modified. What would
> be the best thing to do in this situation?
> Example:
> foo/a
> foo/.svn <== missing
> % svn checkout $REPOS/foo foo2
> % mv foo2/.svn foo
> % rm -rf foo2
> % svn update
> % svn commit
> ... seems to work. Is it safe?

.svn/entries records file timestamps and such, so while it's safe, it
would probably be better to do things "the other way around":

% svn checkout $REPOS/foo foo2
% mv foo/modified-file.c foo2
(repeat for other modified files)
% rm -rf foo
% mv foo2 foo

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 10 19:07:33 2004

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.