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

Re: AW: Corrupt .svn directory using Subversion 1.7

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 21 Aug 2012 16:40:23 +0100

Steven Lee <stlee987_at_gmail.com> writes:

> svn up --set-depth empty foodir
>
> cleared out 'foodir', but
>
> svn up --set-depth infinity foodir
>
> did not bring any files back.

You will have to look at the SQLite database to provide more
information. Something like this may show what is going on:

  sqlite .svn/wc.db "select local_relpath, presence, revision, depth from nodes where local_relpath like 'foodir%'"

after the '--set-depth empty' there should be only one line for foodir,
then after the '--set-depth infinity' there should be additional lines
for the children in foodir.

> 'svn checkout' did not work either.

What does that mean?

>
> -Steven
>
>
> On 8/20/2012 4:21 AM, Philip Martin wrote:
>> Steven Lee <stlee987_at_gmail.com> writes:
>>
>>> On Aug 19, 2012 11:45 PM, "Steven Lee" <stlee987_at_gmail.com> wrote:
>>>> Yes, I tried "svn update --set-depth infinity" and nothing happened.
>>> Many of the files are still missing from my working copy. It does seem
>>> like that should have worked.
>>> Just to be clear, I tried "svn update --set-depth infinity" in the foodir
>>> directory and "svn update --set-depth infinity foodir" in foodir's parent
>>> directory.
>> The problem is that in 1.7 the operation you interrupted is not properly
>> atomic so foodir is probably still marked as depth infinity despite
>> haoving missing children.
>>
>> sqlite .svn/wc.db "select local_relpath, depth from nodes where local_relpath like 'foodir%'"
>>
>> So you probably have to do:
>>
>> svn up --set-depth empty foodir
>>
>> before
>>
>> svn up --set-depth infinity foodir
>>
>> will work.
>>
>
>

-- 
Philip
Received on 2012-08-21 17:41:07 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.