On Thu, Apr 20, 2006 at 10:56:09PM -0700, Jason Dagit wrote:
> 1) How many bytes do line endings add to the length of the old or new
> content?  Is it okay to assume line endings are exactly one byte in
> patches?  I know this will hold in unix-land, but what about win32?

Darcs doesn't do different line endings. \n is a line ending,
\r\n is a line with a \r as the last char, \r (old Mac) is not a
line ending. Any conversions will be done by external filters
when they are implemented.

> 2) Currently when using darcs interactively (in darcs record for
> example) what you see on the screen is a dump of what goes into the
> patch file.  So the direct result of my new patch format is that the
> patch goes from being easily readable by humans to a bunch of garbage
> all lumped together.

I think the original thought was to have the patch file format
be very human readable (and editable/repairable) and use it also
as screen format, only slightly improved with colors and such,
so that patches looked the same everywhere. Now efficiency has
become more important. One option is to try to balance so that
the format is both efficient and human readable. Otherwise there
has to be either some conversion, probably from file format to
screen format, as the coloring already does, but per patch type,
or the patch interface needs to have two different write
functions. The latter is probably better, maybe it's possible to
use a class to default screen write to file write for all old
patch types?


-- 
Tommy Pettersson <[EMAIL PROTECTED]>

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to