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

Re: Random files being "reverted" on one repository

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Wed, 11 May 2011 23:31:15 +0300

Dave Tingling wrote on Wed, May 11, 2011 at 16:03:20 -0400:
> Daniel Shahaf wrote:
> >Which tells me your repository was created by Subversion 1.4. Nothing
> >unexpected...
> I've learned that clients update their working-copy layout to
> whatever that client is built for. Considering http://stackoverflow.com/questions/1364618/how-do-i-determine-svn-working-copy-layout-version,
> I realize that our 1.6.x clients indeed have '10' on the first line
> of .svn/entries.
>

Correct, but that's a client-side issue, which is a few miles (and
layers of abstraction) away from where we were two levels of >-quoting
ago...

> What do these $REPOS/format = 5 and $REPOS/db/format = 2 each
> mean, please?

These are the repository format number and the filesystem backend format
number. When svnadmin 1.4 sees a format number greater than 2 on a FSFS
repository, it will abort with an error to the effect of "This
repository is newer than I know how to handle". (It doesn't know how
to modify a format-3 FSFS without corrupting it.) Ditto for the other
format files.

Specific details currently live at the documentation comments of the following macros:

subversion/libsvn_repos/repos.h:SVN_REPOS__FORMAT_NUMBER
subversion/libsvn_fs_fs/fs.h:SVN_FS_FS__FORMAT_NUMBER
subversion/libsvn_fs_base/fs.h:SVN_FS_BASE__FORMAT_NUMBER

(In a nutshell: the filesystem is everything under the db/ directory ---
the versioned tree and revprops; the repository is everything under
db/'s parent directory; the filesystem format number is private to the
concrete FS provider (fsfs or bdb), rather than to the FS library
itself)

> (I'll be happy to document in the FAQ if I can :-)

Thanks for the readiness :-)

The FAQ source lives at http://svn.apache.org/repos/asf/subversion/site/publish/faq.html,
and patch submission guideliens are at http://subversion.apache.org/patches.

> Is it possible that we're seeing this problem because of using 1.6
> clients against this server?
>

It's possible that we have some bugs in the compatibility code for
1.6.16 clients and 1.4.x servers.

> Thanks,
> -Dave
Received on 2011-05-11 22:32:09 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.