[PATCH 0 of 2] hgweb: Allow empty changelog messages (resend)

Martin Geisler mg at lazybytes.net
Tue Apr 28 10:50:50 CDT 2009


Rocco Rutte <pdmef at gmx.net> writes:

> In many templates the changelog message is a link to the changeset. In
> case there is no changelog message (which subversion allows) there's
> no easy way to get the info (except choosing a child changeset and use
> parent links).
>
> These patches add a "nonempty" filter and use in templates where
> needed to print "(none)" instead to get a clickable link.

Thank you for the patches. I've pushed them to crew as revisions
27dbe534397b and 89bc3946c8f3.

To work around the '(none)' strings in the templates, I simply changed
webcommands.py to always run the description through the nonempty filter
before outputting the data to the JavaScript.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090428/6b504016/attachment.pgp 


More information about the Mercurial-devel mailing list