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

Bad XML error with bad date in entries

From: Lele Gaifax <lele_at_nautilus.homeip.net>
Date: 2004-05-13 16:36:38 CEST

Hi all,

due to wrong system date, the .svn/entries file in a wc is now
containing something like:

    <?xml version="1.0" encoding="utf-8"?>
    <wc-entries
       xmlns="svn:">
    ...
    <entry
       committed-rev="534"
       name="__init__.py"
       text-time="1904-01-01T00:17:10.000000Z"
       committed-date="2004-04-05T22:40:30.442154Z"
       checksum="d41d8cd98f00b204e9800998ecf8427e"
       last-author="lele"
       kind="file"
       prop-time="1904-01-01T00:17:10.000000Z"/>
    ...
    </wc-entries>

Doing anything in this wc raises a bad error message:

$ svn st
svn: XML parser failed in ''

Digging with gdb confirms that it's a time parse problem in
svn_time_from_cstring, that gets propagated up to the caller, so
that finally read_entries() emits that message, where it probably
means '.', since when the trouble is in a subdirectory, I get

$ svn st
svn: XML parser failed in 'subdir/someother'

I solved the problem with sed... Maybe the SVN_ERR_BAD_DATE returned
by the parser should appear into the final message.

hth,
ciao, lele.

-- 
nickname: Lele Gaifax	| Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas	| comincerò ad aver paura di chi mi copia.
email: lele@seldati.it	|		-- Fortunato Depero, 1929.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 13 16:38:04 2004

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.