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

Re: Berkeley's db_dump is your friend. Your *best* friend.

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2001-03-02 22:00:05 CET

Jim Blandy <jimb@zwingli.cygnus.com> writes:
> I think you misunderstand. The actual string stored in the database
> really contains ordinary newline characters. If you print it in the
> simplest, most obvious way --- like, with `puts' or `fwrite' --- you
> get a nicely indented thingy. There's no translation necessary.
> Instead, it's db_dump that is "going to the trouble" to print the
> newlines as backslashed hex sequences.

Yes, that's what I understood. But since I'm using db_dump to view
it, that trouble db_dump goes through still affects me.

> If you were debugging syntax errors in skels, or something similar,
> yes. But if your problem is at a higher level, the indentation could
> be helpful. Taken at your word, the logical conclusion would be that
> indentation must never be trusted when debugging, because it's not
> what the parser actually cares about. But I know you don't actually
> function that way.
>
> But anyway, I'll take out the indentation.

Oh, there are certainly times when the indentation would be helpful!
But there are also times when it's just in the way... (Someday if we
really need a "svn_fs_pretty_print_skel" function for debugging, it
wouldn't be hard to write, anyway).

-K
Received on Sat Oct 21 14:36:25 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.