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

svn cleanup no longer detects old WC formats

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Thu, 21 Feb 2013 15:04:44 +0000 (GMT)

We seem to have lost the nice "WC is too old ... please see 'svn upgrade'" in one place: 'svn cleanup'.

$ # Create v1.6 and v1.7 WCs
$ svnadmin16 create r16; svn16 co file:///`pwd`/r16 wc16
$ svnadmin17 create r17; svn17 co file:///`pwd`/r17 wc17

$ # It was working nicely with svn 1.7
$ svn17 cleanup wc16
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/home/julianfoad/src/wc16' is too old (format 10, created by Subversion 1.6)

$ # But not using svn trunk_at_1448483
svn cleanup wc16
DBG: cleanup.c:  55: format=0
/.../subversion/svn/cleanup-cmd.c:99: (apr_err=155007)
/.../subversion/libsvn_client/cleanup.c:62: (apr_err=155007)
/.../subversion/libsvn_wc/cleanup.c:220: (apr_err=155007)
/.../subversion/libsvn_wc/cleanup.c:151: (apr_err=155007)
/.../subversion/libsvn_wc/cleanup.c:59: (apr_err=155007)
svn: E155007: '/home/julianfoad/src/wc16' is not a working copy directory

$ svn cleanup wc17
DBG: cleanup.c:  55: format=0
/.../subversion/svn/cleanup-cmd.c:99: (apr_err=155007)
/.../subversion/libsvn_client/cleanup.c:62: (apr_err=155007)
/.../subversion/libsvn_wc/cleanup.c:220: (apr_err=155007)
/.../subversion/libsvn_wc/cleanup.c:151: (apr_err=155007)
/.../subversion/libsvn_wc/cleanup.c:59: (apr_err=155007)
svn: E155007: '/home/julianfoad/src/wc17' is not a working copy directory

All other 'svn' commands still give the helpful message.  For example:

$ svn ls wc17
/.../subversion/svn/svn.c:2819: (apr_err=155036)
svn: E155036: Please see the 'svn upgrade' command
/.../subversion/svn/list-cmd.c:383: (apr_err=155036)
/.../subversion/libsvn_client/list.c:584: (apr_err=155036)
/.../subversion/libsvn_client/list.c:373: (apr_err=155036)
/.../subversion/libsvn_client/ra.c:488: (apr_err=155036)
/.../subversion/libsvn_client/url.c:57: (apr_err=155036)
/.../subversion/libsvn_wc/node.c:358: (apr_err=155036)
/.../subversion/libsvn_wc/wc_db.c:8963: (apr_err=155036)
/.../subversion/libsvn_wc/wc_db_wcroot.c:681: (apr_err=155036)
/.../subversion/libsvn_wc/wc_db_wcroot.c:316: (apr_err=155036)
svn: E155036: The working copy at '/home/julianfoad/src/wc17'
is too old (format 29) to work with client version '1.8.0-dev (under development)' (expects format 31). You need to upgrade the working copy first.

Thoughts?  I'll file a low-priority bug if nobody has a better idea.

- Julian

 

--
Certified & Supported Apache Subversion Downloads: http://www.wandisco.com/subversion/download
Received on 2013-02-21 16:05:24 CET

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.