Sure. Say you were working http://server/foo and someone deleted bar.cpp
from it in revision 43
Then, assuming that you had a working copy somewhere, you'd cd to the
working area, and execute this:
svn cp -r 42 http://server/foo/bar.cpp .
That would copy the file from the version of the repository and place it in
your working copy. Do that once per
file and then commit.
Rob.
----- Original Message -----
From: "JC Hearn" <jchearn@medicalnetsystems.com>
To: "'Subversion List'" <users@subversion.tigris.org>
Sent: Wednesday, February 16, 2005 5:09 AM
Subject: How to restore files to current version
> I have a question about how to recover deleted files into the current
> version.
>
> Let's say someone accidentally deletes one or more files in a directory
> and commits their change. Being able to access the files is (of course)
> no problem--simply do svn update -r x to get back to a version that
> still included the files.
>
> My question is: is there an elegant way to put the missing files into a
> new version?
>
> I am sure you can futz around with updating to a prior version, copying
> the files elsewhere, updating to the current version, copy file files
> back in, svn add them, and then commit. I was just wondering if there
> was a way to do all of that in fewer steps.
>
> Regards.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 16 16:54:35 2005