You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Holger Schmidt <Ho...@zmdi.com> on 2012/09/04 15:34:35 UTC

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

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@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.


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

Posted by Philip Martin <ph...@wandisco.com>.
Holger Schmidt <Ho...@zmdi.com> writes:

> What can I do to get rid of the error?

Upgrade to 1.7.

$ svn1.6 st wc1
svn: 'wc/dir1/dir2/file1' is not under version control

$ svn1.7 st wc2
Status against revision:      2

-- 
Philip