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

fs_fs.c Information

From: William Deacon <wjd105_at_doc.ic.ac.uk>
Date: Tue, 26 Feb 2008 19:45:11 +0000 (GMT)

Hi,

I'm currently in the process of trying to port subversion to the Gumstix
platform: http://www.gumstix.com/

So far I can check out existing repositories just fine.
I can also create a repository on the gumstix with svnadmin create.

The problem occurs when I try to perform any write operations to
the repository (i.e. an import or a commit).

I'm using the fs_fs database format (I have built bdb but that brings
its
own problems with it) and have added various print statements to
libsvn_fs_fs/fs_fs.c in order to try and pin-point the problem.

The issue appears to be with read_rep_offsets when the txn_id parameter
is not NULL. Output from an import command from my added prints looks
like:

--------------------------------------------------------------------------
Entered read_rep_offsets.
Beginning tokenisation of 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
(txn_id = (null)).
mutable_rep_truncated is set.
Token 1: 0
Token 2: 0
Token 3: 4
Token 4: 4
Token 5: 2d2977d1c96f487abe4a1e202dd03b4e
Entered read_rep_offsets.
Beginning tokenisation of 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
(txn_id = (null)).
mutable_rep_truncated is set.
Token 1: 0
Token 2: 0
Token 3: 4
Token 4: 4
Token 5: 2d2977d1c96f487abe4a1e202dd03b4e
Entered read_rep_offsets.
Beginning tokenisation of 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
(txn_id = (null)).
mutable_rep_truncated is set.
Token 1: 0
Token 2: 0
Token 3: 4
Token 4: 4
Token 5: 2d2977d1c96f487abe4a1e202dd03b4e
Entered read_rep_offsets.
Beginning tokenisation of 0 4 4 1570892878828568 <control-chars
ommitted due to email restriction>
(txn_id = 0-2).
mutable_rep_truncated is set.
Token 1: 0
Token 2: 4
Token 3: 4
Token 4: 1570892878828568
Token 5:
Error: length = 3, expected_length = 32.
svn: Malformed text rep offset line in node-rev 5
--------------------------------------------------------------------------

`Token 5' is usually an md5 sum but in the last function call
it appears
to be some control characters!

I just wondered if anybody with experience in SVN internals
could describe
briefly what the read_rep_offsets function does, what the
parameters signify
and what difference having a non-NULL txn_id makes.

Hopefully then I can hack together a working build :D

Cheers,

Will Deacon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-26 20:45:36 CET

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.