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

Newly noticed 'svn revert' bug -- failure to obtain WC-NG lock

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Tue, 17 May 2011 17:35:03 +0200

Just came across this while trying to get some work done. I present the
following fairly minimal recipe:

----------------------------------------------------------------
#!/bin/sh
set -x
REPOS=revert-lock-failure-repos
WC=revert-lock-failure-wc
rm -rf ${REPOS} ${WC}
svnadmin create ${REPOS}
svn co file://`pwd`/${REPOS} ${WC}
svn mkdir ${WC}/dir-1 ${WC}/dir-2
svn ci -m "Add dir-1 and dir-2" ${WC}
svn switch ^/dir-1 ${WC}/dir-2 --ignore-ancestry
svn revert ${WC}/dir-2
----------------------------------------------------------------

The final 'svn revert' in this script fails today with an error like:

subversion/svn/revert-cmd.c:89: (apr_err=155005)
subversion/libsvn_client/revert.c:189: (apr_err=155005)
subversion/libsvn_client/revert.c:105: (apr_err=155005)
subversion/libsvn_client/revert.c:105: (apr_err=155005)
subversion/libsvn_wc/adm_ops.c:1549: (apr_err=155005)
subversion/libsvn_wc/adm_ops.c:1549: (apr_err=155005)
subversion/libsvn_wc/lock.c:1442: (apr_err=155005)
svn: E155005: No write-lock in '/home/cmpilato/tests/revert-lock-failure-wc'

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2011-05-17 17:35:36 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.