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

reproducible mkdir/rmdir bug?

From: Martin Pool <mbp_at_sourcefrog.net>
Date: 2002-07-06 15:39:01 CEST

I think I've found a bug in #2415 where adding and removing a
directory gets Subversion into an inconsistent state where it gives an
error whenever you touch the dead directory. Surely that's not the
intended behaviour?

Transcript follows:

mbp/2 work$ mkdir svnbug1
mbp/2 work$ cd svnbug1
mbp/4 svnbug1$ svnadmin create repo
mbp/4 svnbug1$ svn mkdir -m 'create trunk' file:///home/mbp/work/svnbug1/repo/trunk

Committed revision 1.
mbp/4 svnbug1$ svn co file:///home/mbp/work/svnbug1/repo/trunk
Checked out revision 1.
mbp/4 svnbug1$ cd trunk
mbp/4 trunk$ svn info
Path: .
Url: file:///home/mbp/work/svnbug1/repo/trunk
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: mbp
Last Changed Rev: 1
Last Changed Date: Sat, 06 Jul 2002 23:26:30 +1000

mbp/4 trunk$ ls
mbp/4 trunk$ svn mkdir foo
A foo
mbp/4 trunk$ svn commit -m 'create foo'
Adding foo

Committed revision 2.
mbp/4 trunk$ svn rm foo
D foo
mbp/4 trunk$ svn commit -m 'remove foo'
Deleting foo

Committed revision 3.
mbp/4 trunk$ svn up

subversion/libsvn_fs/tree.c:178
svn_error: #21068 : <Filesystem has no item>
  file not found: transaction `4', path `/trunk/foo'

mbp/4 trunk$ ls -laG
total 16
drwxrwxr-x 4 mbp 4096 Jul 6 23:26 .
drwxrwxr-x 4 mbp 4096 Jul 6 23:26 ..
drwxrwxr-x 8 mbp 4096 Jul 6 23:26 .svn
drwxrwxr-x 2 mbp 4096 Jul 6 23:27 foo

mbp/4 trunk$ ls -laG foo
total 8
drwxrwxr-x 2 mbp 4096 Jul 6 23:27 .
drwxrwxr-x 4 mbp 4096 Jul 6 23:26 ..

mbp/4 trunk$ cat .svn/entries
<?xml version="1.0" encoding="utf-8"?>
<wc-entries
   xmlns="svn:">
<entry
   committed-rev="1"
   name="svn:this_dir"
   committed-date="2002-07-06T13:26:30.092406Z"
   url="file:///home/mbp/work/svnbug1/repo/trunk"
   last-author="mbp"
   kind="dir"
   revision="1"/>
<entry
   name="foo"
   kind="dir"
   deleted="true"/>
</wc-entries>

mbp/4 trunk$ svn status -uv

subversion/libsvn_fs/tree.c:178
svn_error: #21068 : <Filesystem has no item>
  file not found: transaction `5', path `/trunk/foo'
mbp/4 trunk$ svn status -v
_ 1 1 mbp .
? ./foo

mbp/4 trunk$ svn commit

-- 
Martin 
(please cc me on replies)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 6 16:38:12 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.