[darcs-devel] darcs.cgi and annotate on renamed files

Will will at glozer.net
Wed Oct 20 00:26:14 PDT 2004


David Roundy <droundy at abridgegame.org> writes:

> This message is mostly for Will, but I figured I'd send it to -devel so
> others would know what's up.
>
> There is a bug in the current darcs.cgi, which is related to a limitation
> that existed in annotate, which is that you can't view the history of a
> renamed file prior to its removal.
>
> I've recently added the --creator-hash flag to annotate, which allows you
> to specify a file according to the name by which it was created along with
> the patch (specified by its hash) that created it.  This uniquely specifies
> a file (except in the bizarre instance where a single patch creates a file,
> renames it, and then creates a second file with the same original name), so
> the rename won't cause trouble.
>
> Could you modify darcs.cgi so that the annotate links use the original name
> and creator hash?

I have started work on this and annotations can now span multiple file
renames without a problem.  The XML output of `changes` will also need
to include the <created_as/> nodes so that the proper annotate links
can be generated on the patch list page.

Regards,
Will




More information about the darcs-devel mailing list