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

Re: How to restore files to current version

From: Bryan Donlan <bdonlan_at_hikari.afraid.org>
Date: 2005-02-16 17:12:27 CET

JC Hearn wrote:
> 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.
>

svn cp -r (revision before delete) (url)/file (url)/file

Received on Wed Feb 16 17:16:31 2005

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.