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

Re: Cannot get a file when deleted

From: Giulio Troccoli <giulio.troccoli_at_mediatelgroup.co.uk>
Date: Tue, 09 Aug 2011 16:40:00 +0100

On 09/08/11 16:28, Adam Tong wrote:
> You are right i just tested when i do revert it is reverted and i can
> see it in the file system.
>
> On the other hand, I am sure that i am doing "rm filename" and not svn
> delete filename.
>
> Maybe there is a way to configure svn so that it considers rm as
> equivalent to svn delete?
>
> Because this is happens in my job and does not in my laptop at home.
>
>
> On Tue, Aug 9, 2011 at 11:20 AM, Giulio Troccoli
> <giulio.troccoli_at_mediatelgroup.co.uk> wrote:
>>
>> On 09/08/11 16:18, Adam Tong wrote:
>>> svn st gives the that the file was deleted (D) when i do svn up it
>>> does not bring it. But when i did the first sugetion of copy -r ....
>>> it worked
>>>
>>> sorry about forgeting to reply to all
>>>
>>>
>>> On Tue, Aug 9, 2011 at 11:03 AM, Giulio Troccoli
>>> <giulio.troccoli_at_mediatelgroup.co.uk> wrote:
>>>> On 09/08/11 16:02, Adam Tong wrote:
>>>>> you are right i used the os, i did not commit after deleting.
>>>>>
>>>>> On Tue, Aug 9, 2011 at 11:00 AM, Giulio Troccoli
>>>>> <giulio.troccoli_at_mediatelgroup.co.uk> wrote:
>>>>>> On 09/08/11 15:40, Adam Tong wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> When i remove a file from my local copy, I cannot get it from the
>>>>>>> repository using the command svn up.
>>>>>>>
>>>>>>> Is there another way to get a recently deleted file? or there is
>>>>>>> something wrong in my settings.
>>>>>>>
>>>>>>> Thanks
>>>>>> Did you use the OS to delete the file or Subversion? Did you commit? If
>>>>>> you
>>>>>> can tell as exactly what you did we'd be in a better position to help
>>>>>>
>>>> In that case the file should be back. What does svn status say?
>>>>
>>>> And please, Reply-to-all so that the conversation stays on the mailing
>>>> list
>>>>
>>>> Gulio
>>>>
>> Well, is svn st says it's been deleted than you have use svn to delete the
>> file, or Subversion wouldn't know about it. So to restore it you can simply
>> use svn revert
>>
>> Giulio
>>

As far as I know no, there is no way to configure Subversion to know
that. If you're using a Unix-like OS at work, make sure you don't have
an alias, or maybe a local rm that it's actually a svn rm in disguise

Giulio
Received on 2011-08-09 17:40:27 CEST

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.