On Sun, Aug 28, 2005 at 11:36:53PM +0200, VMiklos wrote:
> Alberto Bertogli wrote:
> >I certanly don't want to generate it by hand by parsing the annotate
> >output (I know I'll have to write the annotate XML parser eventually, but
> >not to generate a patch by hand). And as you say, parsing the raw patch
> >file is quite fragile.
> 
> but it's fast, and imho one of the main advantages of darcsweb is that 
> its rather faster than darcs.cgi

Well, I've just done this.

It uses "darcs changes -v" output to get the darcs patch, and does some
simple parsing based on the rules you sent on a previous email.

It makes the alternative patch views appear on the regular diff views
(commitdiff, filediff, headdiff, headfilediff). It provides the unified
(default) one, plain, darcs; and in commitdiff's case also a raw one taken
right out of the patch file that will probably go away at some point if
the patch format is changed or it begins to break, so don't rely on it.

I haven't tested it widely, but I think it works; it's in the current
repository. If you try it, let me know how it goes.

Thanks,
                Alberto


PS: before somebody asks, I know some people would like the darcs format
to be the default (I certanly don't). I will see in the future if I can
make it configurable, but the code as-is makes this a bit tricky and
implementing it will require some cleanup and reorganization.


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

Reply via email to