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

[PATCH] Be more helpful when read_entries dies.

From: Justin Erenkrantz <jerenkrantz_at_ebuilt.com>
Date: 2001-12-12 09:59:23 CET

Due to the pool corruption (who knows if this is related to
Sander's new pool code in APR or how SVN uses pools - Sander's
looking into it now), I had a corruption in one of my
.svn/entries files. This patch proved quite helpful in isolating
which .svn/entries file was corrupted. -- justin

Index: subversion/libsvn_wc/entries.c
===================================================================
--- subversion/libsvn_wc/.svn/text-base/entries.c.svn-base Mon Dec 10 01:50:05 2001
+++ subversion/libsvn_wc/entries.c Wed Dec 12 00:51:36 2001
@@ -665,9 +665,9 @@
     err = svn_xml_parse (svn_parser, buf, bytes_read,
                          APR_STATUS_IS_EOF(apr_err));
     if (err)
- return svn_error_quick_wrap
- (err,
- "read_entries: xml parser failed.");
+ return svn_error_createf(apr_err, 0, err, pool,
+ "read_entries: xml parser failed (%s).",
+ path->data);
   } while (!APR_STATUS_IS_EOF(apr_err));
 
   /* Close the entries file. */

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:52 2006

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.