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

How to verify a repository plus Revision file lacks trailing newlline

From: Jackie Smith Cashion <jackie_at_arxceo.com>
Date: 2005-06-17 00:25:51 CEST

I have found at least one corrupt file (an empty directory) in my SVN
repository. The disk drive on my Windows 2003 server has begun to fail.
So I have moved my repository to another server and disk. To do this I
configured apache and svn on the new server, and with no one else
accessing the old repository, I copied the C:\svn directory tree to the
new system.

As expected, the empty directory is still corrupt (inaccessible from svn)
on the new system. So I'd like to run some "repository verification"
utility against the entire repository. I could use some help.

Here's what I see when I try to access a "good" directory in my repository:

svn list http://localhost/svn/repos/trunk
 
deprecated/
driver/
gui/
test/

Here's what I see when I try to access the corrupt directory:

svn list http://localhost/svn/repos/branches

svn: PROPFIND request failed on '/svn/repos/branches'
svn:
Can't read file 'C:\svn/repos/db/revs/171': End of file found

Next I chose the "svnadmin verify" command with the following results:

svnadmin verify C:\svn\repos
* Verified revision 0.
* Verified revision 1.
* Verified revision 2.
svn: Revision file lacks trailing newline

I'm sort of flailing around now, but I tried the "svnlook info" command.
The output looks good to me.

svnlook info -r 171 c:\svn\repos
Billy
2005-03-24 09:14:08 -0600 (Thu, 24 Mar 2005)
44
Branch to work on changes for Service Pack 1

I looked at the file c:\svn\repos\db\revs\171. Here's the contents:

id: 1.h.r171/0
type: dir
pred: 1.0.r170/30342
count: 153
text: 170 30066 263 263 4e148acc169f2af25ac0ce4e3b1412f0
cpath: /branches/SP1_BW
copyfrom: 170 /trunk

PLAIN
K 6
SP1_BW
V 14
dir 1.h.r171/0
END
ENDREP
id: 7.0.r171/208
type: dir
Pred:FILE0 <bunch of non printable stuff>
type: dir
pred: 1.0.r170/30342
count: 153
text: 170 30066 263 263 4e148acc169f2af25ac0ce4e3b1412f0
cpath: /branches/SP1_BW
copyfrom: 170 /t

Now this doesn't mean much to me, but I do know that the subdirectory
/branches/SP1_BW does not exist. The programmer who attempted to create this
branch says the command failed, but I don't know exactly which command he
attempted to use.

I would like to repair and verify my repository before resuming check ins.
I would appreciate any assistance you can offer. Thanks in advance.

Jackie Smith Cashion
Arxceo
jackie@arxceo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 17 00:27:46 2005

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.