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

Failed to remove file fetched by svn:externals

From: Matias E. Fernandez <mfernandez_at_futurelab.ch>
Date: Fri, 3 Sep 2010 16:20:14 +0200

Hello

A file imported via svn:externals definition fails being removed after
deleting the svn:externals property with propdel, or removing the
specific entry with propedit.

Details see below.

Regards
Matias

p.s.: please cc me, as I am not subscribed to this mailing list.

$ svn --version
svn, version 1.6.12 (r955767)
   compiled Jul 13 2010, 13:33:56

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

Steps to reproduce this bug:

~/Desktop/mysvnrepo$ svnadmin create test
~/Desktop/mysvnrepo$ svn co file:///Users/pisco/Desktop/mysvnrepo/test/ sandbox
Checked out revision 0.
~/Desktop/mysvnrepo$ cd sandbox/
~/<1>/mysvnrepo/sandbox(0)$ mkdir -p a/b/c
~/<1>/mysvnrepo/sandbox(0)$ cd a/b/c/
~/<4>/b/c$ touch bla.txt
~/<4>/b/c$ cd ../../..
~/<1>/mysvnrepo/sandbox(0)$ svn add a/
A a
A a/b
A a/b/c
A a/b/c/bla.txt
~/<1>/mysvnrepo/sandbox(0M)$ mkdir x
~/<1>/mysvnrepo/sandbox(0M)$ svn add x/
A x
~/<1>/mysvnrepo/sandbox(0M)$ svn commit .
Adding a
Adding a/b
Adding a/b/c
Adding a/b/c/bla.txt
Adding x
Transmitting file data .
Committed revision 1.
~/<1>/mysvnrepo/sandbox(0:1)$ svn propedit svn:externals x
Set new value for property 'svn:externals' on 'x'
~/<1>/mysvnrepo/sandbox(0:1M)$ svn up x

Fetching external item into 'x/bla.txt'
E x/bla.txt
Updated external to revision 1.

Updated to revision 1.
~/<1>/mysvnrepo/sandbox(0:1M)$ svn commit
Sending x

Committed revision 2.
~/<1>/mysvnrepo/sandbox(0:2)$ svn propdel svn:externals x
property 'svn:externals' deleted from 'x'.
~/<1>/mysvnrepo/sandbox(0:2M)$ svn up
At revision 2.
~/<1>/mysvnrepo/sandbox(2M)$ svn st
 M x
    X x/bla.txt
~/<1>/mysvnrepo/sandbox(2M)$ svn commit .
Sending x

Committed revision 3.
~/<1>/mysvnrepo/sandbox(2:3)$ svn up
At revision 3.
~/<1>/mysvnrepo/sandbox(3)$ svn st
    X x/bla.txt
~/<1>/mysvnrepo/sandbox(3)$ svn rm x/bla.txt
svn: Cannot remove the file external at 'x/bla.txt'; please propedit or propdel the svn:externals description that created it
~/<1>/mysvnrepo/sandbox(3)$ rm x/bla.txt
~/<1>/mysvnrepo/sandbox(3M)$ svn st
! X x/bla.txt
Received on 2010-09-03 16:24:08 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.