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

Re: File delete oddities: os delete conflicts wth svn delete

From: Robert North <aqh4uyrs3e02_at_sneakemail.com>
Date: 2003-01-08 17:18:18 CET

Philip Martin philip-at-codematters.co.uk |Subversion list| wrote:

>Robert North <aqh4uyrs3e02@sneakemail.com> writes:
>
>
>
>>I also have some simple bash scripts, and logs that demonstate the bugs,
>>and should be runnable (or at least readable) elsewhere.
>>If you wish I can post those too.
>>
>>
>
>You should post the complete sequence to reproduce the problem.
>
>
>
>>>>*** Bug pt2: risks with "svn up aa" ***
>>>>If my repository is at file:///home/auser/svn
>>>>Then doing the following causes an unrecoverable failure:
>>>>svn rm file:///home/auser/svn/aa
>>>>svn up aa
>>>>I have attempted "svn cleanup" and "svnadmin repair". Neither correct
>>>>the failure.
>>>>
>>>>
>>>I can't reproduce this problem:
>>>
>>>
>>>
>>Ok my apologies, I forgot to mention that "file:///home/auser/svn/aa"
>>is a directory.
>>
>>Files always work, directories do not.
>>
>>
>
>You still haven't provided enough information to reproduce it. Here's
>what I tried
>
Ok, it's time I provided the bash scripts I mentioned in the last e-mail.
Please try these scripts, or eqivalent.

The scripts are intended to be run in an empty directory.

Script "svn_test_rmbug_pt2" refers to Bug pt 2

My typical output is shown in attachment "svn_test_rmbug_pt2.log"

Script "svn_test_rmbug_pt3" refers to Bug pt 3

My typical output is shown in attachment "svn_test_rmbug_pt3.log"

 From this experience I think I'll build bash scripts to reproduce all
future bugs.
Will save going round the houses.

Hope this clarifies matters
    -Rob.

#!/bin/bash -v
        DIR=`pwd`
        rm -rf wc
        rm -rf rep
        svnadmin create rep
        svn co file:///${DIR}/rep wc
        cd wc
        svn mkdir aa
        svn ci -m xx
        ls # wc & repository ready for test
        rm -rf aa
        svn rm file:///${DIR}/rep/aa -m xx
        svn up aa # Error occurs here.
        svn status # Now demonsrtate locks, and cleanup problems.
        svn cleanup
        svn status

rob@linux:/home/rob-orig/test_file_commands> svn_test_rmbug_pt2
#!/bin/bash -v
        DIR=`pwd`
pwd
        rm -rf wc
        rm -rf rep
        svnadmin create rep
        svn co file:///${DIR}/rep wc
Checked out revision 0.
        cd wc
        svn mkdir aa
A aa
        svn ci -m xx
Adding aa

Committed revision 1.
        ls # wc & repository ready
for test
aa
        rm -rf aa
        svn rm file:///${DIR}/rep/aa -m xx

Committed revision 2.
        svn up aa # Error occurs here.
subversion/libsvn_wc/log.c:288: (apr_err=155009)
svn: Problem running log
svn: in directory
subversion/libsvn_wc/log.c:1191: (apr_err=155009)
svn: start_handler: error processing command 'delete-entry' in
subversion/libsvn_wc/lock.c:422: (apr_err=155005)
svn: Working copy not locked
svn: directory not locked (aa)
        svn status # Now demonsrtate locks,
and cleanup problems.
  L .
! aa
        svn cleanup
subversion/libsvn_wc/log.c:288: (apr_err=155009)
svn: Problem running log
svn: in directory
subversion/libsvn_wc/log.c:1191: (apr_err=155009)
svn: start_handler: error processing command 'delete-entry' in
subversion/libsvn_wc/lock.c:422: (apr_err=155005)
svn: Working copy not locked
svn: directory not locked (aa)
        svn status
  L .
! aa

#!/bin/bash -v
        DIR=`pwd`
        rm -rf wc
        rm -rf rep
        svnadmin create rep
        svn co file:///${DIR}/rep wc
        cd wc
        svn mkdir ff
        echo xx2 > xx
        svn add -R xx
        svn ci -m x # wc & repository ready for test
        rm -rf ff
        svn rm ff # rm fails
        ls # From now on, commands just demonstrate some features of this breakage.
        svn up ff
        svn status
        svn ci -m x
        svn status

rob@linux:/home/rob-orig/test_file_commands> svn_test_rmbug_pt3
#!/bin/bash -v
        DIR=`pwd`
pwd
        rm -rf wc
        rm -rf rep
        svnadmin create rep
        svn co file:///${DIR}/rep wc
Checked out revision 0.
        cd wc
        svn mkdir ff
A ff
        echo xx2 > xx
        svn add -R xx
A xx
        svn ci -m x # wc & repository ready for test
Adding ff
Adding xx
Transmitting file data .
Committed revision 1.
        rm -rf ff
        svn rm ff # rm fails
D xx
subversion/libsvn_wc/lock.c:422: (apr_err=155005)
svn: Working copy not locked
svn: directory not locked (ff)
        ls # From now on, commands just demonstrate some
features of this breakage.
xx
        svn up ff
A ff
Updated to revision 1.
        svn status
D xx
        svn ci -m x
Deleting xx

Committed revision 2.
        svn status
? xx

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 8 17:19:15 2003

This is an archived mail posted to the Subversion Dev mailing list.