[darcs-devel] [darcs #146] optimize should remove old ambiguities in patch files

via RT bugs at darcs.net
Mon Dec 20 05:57:32 PST 2004


Mon Dec 20 08:57:31 2004: New ticket: 146.
Transaction: Ticket created by guest
       Queue: Darcs
     Subject: optimize should remove old ambiguities in patch files
       Owner: Nobody
  Requestors: aj at azure.humbug.org.au
      Status: new
 Ticket <URL: http://bugs.darcs.net/.//Ticket/Display.html?id=146 >

Old darcs patches may look like:

[make darcs able to read new repo format.
droundy at abridgegame.org**Wed Apr 30 07:56:24 EDT 2003
 The current repository format includes an inventory which is a flat file
 listing all patches in the repo.  This doesn't scale well with time, as
 this file will continue growing, and often needs to be read in its
 entirety.  The new format is essentially a linked list of files, so in the
 common case (which I will try to make very common) only the names of
 patches since the last tag will need to be read.] 

with the closing "]" not appearing on its own line. Or like this:

[darcs init is now silent on success.
David Roundy <droundy at abridgegame.org>**20041017122851]  < > hunk
./tests/rerecord.pl 13

with a single patch not being enclosed in {}'s. When there are no
dependencies, sometimes patches will include empty "< >" markers, and
sometimes won't.

It would be nice if "darcs optimize" could go through patches and output
a single format, so that patch file parsers don't have to cope with old
mishaps forever.

The closing "]" issue seems particularly hard to parse around nicely :(






More information about the darcs-devel mailing list