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

deleting working copy root

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 14 Apr 2010 10:50:25 +0200

Hi,

deleting the working copy root doesn't work (and I don't it think
should), but the error message we print is somewhat confusing:

  $ pwd
  /tmp/svn-sandbox/trunk
  $ svn rm .
  subversion/svn/delete-cmd.c:91: (apr_err=155007)
  subversion/svn/util.c:900: (apr_err=155007)
  subversion/libsvn_client/delete.c:355: (apr_err=155007)
  subversion/libsvn_wc/adm_ops.c:1069: (apr_err=155007)
  subversion/libsvn_wc/adm_ops.c:1069: (apr_err=155007)
  subversion/libsvn_wc/wc_db.c:5919: (apr_err=155007)
  subversion/libsvn_wc/wc_db.c:998: (apr_err=155007)
  svn: '/tmp/svn-sandbox' is not a working copy
  $ svn st
  $

Should this not say something like "/tmp/svn-sandbox/trunk is the
root of a working copy and cannot be deleted"?

On trunk, tyring to delete the current working directory works fine in
a subdir of the working copy:

  $ cd epsilon/
  $ svn rm .
  D zeta
  D .
  $ cd ..
  $ svn st
  D epsilon
  D epsilon/zeta
  $

But 1.6.x has funky problems (do we care?)

  1.6.x-power $ svn rm .
  D .
  1.6.x-power $ cd ..
  1.6.x-power $ svn st epsilon
  D epsilon
  ! epsilon/zeta
  $

I noticed this because the svn-patch-improvements branch currently
tries to delete the WC root if the patch deletes everything from
the working copy (which is a bug and probably my fault):

svn-patch-improvements-power $ svn st
svn-patch-improvements-power $ svn rm *
D alpha
D beta
D epsilon/zeta
D epsilon
D gamma/delta
D gamma
svn-patch-improvements-power $ svn diff > /tmp/test.diff
svn-patch-improvements-power $ svn revert -R .
Reverted 'alpha'
Reverted 'beta'
Reverted 'epsilon'
Reverted 'epsilon/zeta'
Reverted 'gamma'
Reverted 'gamma/delta'
svn-patch-improvements-power $ svn patch /tmp/test.diff
D .
subversion/svn/patch-cmd.c:84: (apr_err=155007)
subversion/libsvn_client/patch.c:1873: (apr_err=155007)
subversion/libsvn_client/patch.c:1799: (apr_err=155007)
subversion/libsvn_client/patch.c:1698: (apr_err=155007)
subversion/libsvn_wc/adm_ops.c:1073: (apr_err=155007)
subversion/libsvn_wc/wc_db.c:6012: (apr_err=155007)
subversion/libsvn_wc/wc_db.c:1011: (apr_err=155007)
svn: '/tmp/svn-sandbox' is not a working copy
svn-patch-improvements-power $

Comments and help appreciated,
Stefan
Received on 2010-04-14 10:51:02 CEST

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.