[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"?>

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.

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.