Mercurial > hg
view mercurial/templates/atom/error.tmpl @ 26312:60558319ce72
ui: avoid mutable default arguments
I almost introduced a bug around this code by accidentally mutating a default
argument. There's no reason for these to exist.
It is OK to not assign {} to environ in ui.system because util.system knows how
to deal with that.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 22 Sep 2015 16:56:34 -0700 |
parents | 9409aeaafdc1 |
children | 4b0fc75f9403 |
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>http://mercurial.selenic.com/#error</id> <author> <name>mercurial</name> </author> <updated>1970-01-01T00:00:00+00:00</updated> <content type="text">{error|escape}</content> </entry> </feed>