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

Re: [PROPOSAL] Drop XML from .svn/entries

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2006-04-17 02:05:49 CEST

Garrett Rooney writes:
> On 4/6/06, Peter N. Lundblad <peter@famlundblad.se> wrote:
>
> > So, I propose to replace our current XML entries files with some
> > variant of this new format. Below is three lines from an entries file
> > to show how it might look:
> >
> > |dir|2|file:///home/pl/svntest/gcc/repo|file:///home/pl/svntest/gcc/repo||||2006-04-06T20:31:40.024395Z|2|pl|t||svn:special svn:externals svn:needs-lock||||||||||||b4f160ba-c4e8-11da-bcd8-65faf9067726|
> > config-ml.in|file|||||2006-04-05T21:35:10.000000Z|e09724e0a7725cc08129db9293a35df9|2006-04-05T21:20:33.744115Z|1|pl|
> > libgomp|dir|
> > ...
> >
> Why not switch from pipe delimited to newline delimited fields? One
> newline would delimit fields in an entry, a line with just a newline
> on it would indicate a new entry. I suppose we might need some way to
> indicate an empty field, but that should be easy enough, or heck, you
> could even go based on the known number of fields in an entry, using
> the blank line between entries as a sanity check. It would result in
> far more easily readable entries files, and the size would be
> identical...
>

Well, I guess this is mostly a matter of taste. Personally, I find it more
readable with one line than 30 per record. Zhakov suggested to switch
to tab characters. I disliked that proposal because a tab might be
confused to a space, but probably not often and never by a computer:-)
But if you for some reason load the file in an editor that munges the
tabs, your bets are off...

We could use spaces and require spaces to be escaped if that improves
readability. (I guess my notion of readability is somewhat different
than others'). I don't have a strong opinion here, but I think it is
useful to use different separators for fields and records. Note that
there is no known count of fields for the sake of extensibility.

NOte that I (hopefully) improved readability by replacing boolean "t"
with field names. Seeing "deleted" says far more than a "t" somewhere
on the line. It increases the size of the file somewhat, but I don't
think that's a probem performancewise.

Night,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 17 02:06:14 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.