You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jan Torben Heuer <jt...@mail2003.dnsalias.org> on 2007/07/24 17:06:33 UTC

restore deleted file

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

Re: restore deleted file

Posted by Martin Schröder <ma...@oneiros.de>.
2007/7/24, Jan Torben Heuer <jt...@mail2003.dnsalias.org>:
> these two files were deleted, how can I restore them from repository?

RTFM:
http://svnbook.red-bean.com/nightly/en/svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.resurrect

Best
   Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: restore deleted file

Posted by Blair Zajac <bl...@orcaware.com>.
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 <jt...@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

Re: restore deleted file

Posted by Gaurav Kothiyal <ko...@gmail.com>.
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 <jt...@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
>
>


-- 
Gaurav Kothiyal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org