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

Status in ignored directory triggers "is not under version control" error

From: Holger Schmidt <Holger.Schmidt_at_zmdi.com>
Date: Tue, 4 Sep 2012 15:34:35 +0200

Hello,

I have a directory dir1/dir2 in my SVN working copy that has depth=empty
set, e.g. after "svn up --set-depth empty". Someone else deletes a file
in that ignored directory. Now I do a "svn st -u" in my working copy
and get an error:

svn: 'dir1/dir2/file1' is not under version control

What is the reason of the error? What can I do to get rid of the error?
  I thought directory dir1/dir2 is ignored, why does SVN care about a
file in that directory? Is this a known bug?

I use SVN version 1.6.15 (r1038135). Here is a script to show the error:

----- Script Start -----
#! /bin/sh

### inuvc.sh - Script to show the "is not under version control" error
### message that is seen if a resource in an empty
### directory is removed.

repoRoot="`pwd`/repo"
repoUrl="file://$repoRoot"
wcRoot="wc"

startDir=`pwd`

### Remove old repository and working copy.
if [ -d $repoRoot ]; then rm -rf $repoRoot; fi
if [ -d $wcRoot ]; then rm -rf $wcRoot; fi

### Create new repository.
svnadmin create $repoRoot

### Create working copy and add some data.
svn co $repoUrl $wcRoot
cd $wcRoot
svn mkdir dir1
svn mkdir dir1/dir2
touch dir1/dir2/file1
svn add dir1/dir2/file1
svn ci -m "Created some data."

### Switch dir2 to empty.
svn up --set-depth empty dir1/dir2

### Remove the file.
svn rm -m "Removed the file." $repoUrl/dir1/dir2/file1

### Do a status. This triggers the error:
### svn: 'dir1/dir2/file1' is not under version control
svn st -u
----- Script End -----

Thanks,
Holger

-- 
Holger Schmidt
Lead Design Engineer
Methodology and Design Automation
Zentrum Mikroelektronik Dresden AG
Grenzstraße 28, 01109 Dresden, Germany
Phone: +49.351.8822.9 0 3
Holger.Schmidt_at_zmdi.com
www.zmdi.com
Executive Board: Thilo von Selchow (CEO), Steffen Wollek (CFO)
Chairman of the Supervisory Board: Carl-Peter Forster
Amtsgericht Dresden: HRB 19 166; Ust-Ident.-Nr.: DE151798300
This email is confidential. It may be read, copied and used only by
the intended recipient. If you are not the intended recipient, you
must not disclose or use the information contained in it. If you have
received this mail in error, please tell us immediately by return
email and delete this email.
Received on 2012-09-04 15:35:16 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.