Mercurial > hg
view mercurial/templates/atom/error.tmpl @ 33318:526255fe7899
sparse: clean up config signature code
Before, 0 was being used as the default signature value and we cast
the int to a string. We also handled I/O exceptions manually.
The new code uses cfs.tryread() so we always feed data into the
hasher. The empty string does hash and and should be suitable
for input into a cache key.
The changes made the code simple enough that the separate checksum
function could be inlined.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 06 Jul 2017 16:01:36 -0700 |
parents | 4b0fc75f9403 |
children |
line wrap: on
line source
{header} <!-- Error --> <id>{urlbase}{url|urlescape}</id> <link rel="self" href="{urlbase}{url|urlescape}atom-log"/> <link rel="alternate" href="{urlbase}{url|urlescape}"/> <title>Error</title> <updated>1970-01-01T00:00:00+00:00</updated> <entry> <title>Error</title> <id>https://mercurial-scm.org/#error</id> <author> <name>mercurial</name> </author> <updated>1970-01-01T00:00:00+00:00</updated> <content type="text">{error|escape}</content> </entry> </feed>