Fix for demandimport.py and Windows compiled version.
From Shun-ichi Goto in BTS issue 457 http://www.selenic.com/mercurial/bts/msg2780
#header#
<title>#repo|escape#: shortlog</title>
<link rel="alternate" type="application/rss+xml"
href="#url#rss-log" title="RSS feed for #repo|escape#">
</head>
<body>
<div class="buttons">
<a href="#url#log/#rev#{sessionvars%urlparameter}">changelog</a>
<a href="#url#tags{sessionvars%urlparameter}">tags</a>
<a href="#url#file/#node|short#/{sessionvars%urlparameter}">manifest</a>
#archives%archiveentry#
<a type="application/rss+xml" href="#url#rss-log">rss</a>
</div>
<h2>shortlog for #repo|escape#</h2>
<form action="#url#log">
{sessionvars%hiddenformentry}
<p>
<label for="search1">search:</label>
<input name="rev" id="search1" type="text" size="30">
navigate: <small class="navigate">#changenav%navshortentry#</small>
</p>
</form>
#entries%shortlogentry#
<form action="#url#log">
{sessionvars%hiddenformentry}
<p>
<label for="search2">search:</label>
<input name="rev" id="search2" type="text" size="30">
navigate: <small class="navigate">#changenav%navshortentry#</small>
</p>
</form>
#footer#