view mercurial/templates/atom/error.tmpl @ 14077:c285bdb0572a

util.url: copy urllib.unquote() into util to improve startup times The ui class uses util.hasscheme() in a couple of places, causing hg to import urllib even when it doesn't need to. This copies urllib.unquote() to avoid that import. perfstartup time before the URL refactoring (8796fb6af67e): ! wall 0.050692 comb 0.000000 user 0.000000 sys 0.000000 (best of 100) before this change: ! wall 0.064742 comb 0.000000 user 0.000000 sys 0.000000 (best of 100) after this change: ! wall 0.052126 comb 0.000000 user 0.000000 sys 0.000000 (best of 100
author Brodie Rao <brodie@bitheap.org>
date Sat, 30 Apr 2011 09:43:23 -0700
parents f91e5630ce7e
children 9409aeaafdc1
line wrap: on
line source

{header}
 <!-- Error -->
 <id>{urlbase}{url}</id>
 <link rel="self" href="{urlbase}{url}atom-log"/>
 <link rel="alternate" href="{urlbase}{url}"/>
 <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>