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

Re: restore deleted file

From: Blair Zajac <blair_at_orcaware.com>
Date: 2007-07-24 21:44:40 CEST

That's a pain if you have more than one file to restore. I like doing reserve
merges if you want to revert the entire revision.

Find the revision to revert, say $R, and defined $Rm1 as $R - 1:

For 1.4 or greater: svn merge -c -$R . .
For 1.3 or lesser: svn merge -r $R:$Rm1 . .

then svn commit -m "Revert revision $R"

Regards,
Blair

Gaurav Kothiyal wrote:
> Find the last revision in which it existed
>
> svn log -v . | less
>
> then svn copy -r <last revision> filename .
>
> then svn Status
>
> the file should be added back
>
> Then svn commit filename
>
>
>
>
>
> On 7/24/07, Jan Torben Heuer <jtnews@mail2003.dnsalias.org> wrote:
>> Hi,
>>
>> after
>> $ svn update
>> D src
>> D pom.xml
>> Updated to revision 224
>>
>> these two files were deleted, how can I restore them from repository?
>>
>> Or could it be, that they have never been in the repository?
>>
>> A comand-line or eclipse decription is fine!
>>
>> Thanks,
>>
>> Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 24 21:44:25 2007

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.