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

Re: Bug: .svn/format deleted upon upgrade

From: Branko Čibej <brane_at_wandisco.com>
Date: Tue, 25 Jun 2013 00:18:43 +0200

On 25.06.2013 00:03, Branko Čibej wrote:
> On 24.06.2013 23:52, Branko Čibej wrote:
>> On 24.06.2013 23:24, Daniel Shahaf wrote:
>>> % /usr/local/svn-1.7.1/bin/svn co -q https://svn.apache.org/repos/asf/subversion/trunk/notes/commit-access-templates/
>>> % ls commit-access-templates/.svn
>>> entries format pristine tmp wc.db
>>> % svn upgrade commit-access-templates
>>> % ls commit-access-templates/.svn
>>> pristine tmp wc.db
>>>
>>> That's a bug: the 'format' file needs to stay (with value "12\n") so
>>> that 1.6 clients recognize the working copy as a working copy. There
>>> also exists third-party code[1] which relies on the existence of
>>> .svn/format to identify working copies efficiently.
>>>
>>> Haven't looked yet into a fix.
>> And the entries file needs to remain there, too. A version-12 format
>> file and a 3-byte entries file (containing just "12\n") are breadcrumbs
>> for pre-1.7 clients. What's more, when we create a new working copy, we
>> create those files, too.
> It would appear that the bug is just about as old as WC-NG itself.
>

Hm, actually, that's not the case at all ... those files are supposed to
be installed during a post-upgrade workqueue run. The
closest-to-doubtful revision I could find is r1357558, which reorders
the workqueue items; but it doesn't seem to cause this bug at first glance.

-- Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-06-25 00:19:17 CEST

This is an archived mail posted to the Subversion Dev mailing list.