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

Re: svn copy not working to resurrect directory

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Tue, 13 Oct 2009 18:35:58 -0500

On Oct 13, 2009, at 17:46, John Calcote wrote:

> A committer in one of my projects deleted a directory in the project.
> Then, realizing the mistake, added it back in from a working copy he
> had
> on his hard drive. This effectively wiped out the history on every
> file
> in that directory. Now, I'd like to put it back with history. Here's
> what I try to do:
>
> $ svn copy https://localhost/svnroot/projectx/trunk/mydir@305 .
> svn: Path 'mydir' already exists
>
> If I try to delete mydir and then repeat the operation, I get an error
> that the working copy is locked. If I delete mydir and run svn cleanup
> first, then run the copy command, I still get the error that the
> working
> copy is locked.
>
> Help! The manual shows how to do this for a single file, but it
> doesn't
> discuss the nuances of doing it with a complete directory. Nor does it
> discuss what to do if the directory exists because it was recreated
> in a
> later revision.

You will probably need to delete the incorrectly-copied directory,
commit, copy it correctly using the peg revision syntax you showed
above, commit again.

Don't know why you got a message that the wc was locked. Are you
running the latest version of Subversion?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2407360

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-14 01:37:07 CEST

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